0674e3d...
by
Chun-wei Fan <email address hidden>
on 2022-12-07
build: Don't build gitlab- oauth2- example on Windows
It needs to be ported for Windows, since it uses POSIX getline().
69261e5...
by
Chun-wei Fan <email address hidden>
on 2022-12-07
examples: Drop g_auto*() usage
It's sadly not supported outside of GCC and CLang.
49e06ad...
by
Chun-wei Fan <email address hidden>
on 2022-12-07
test-raw.c: Include io.h on Windows
...instead of unistd.h, since unistd.h is not universally available on Windows
but io.h is.
4a5ba0f...
by
Chun-wei Fan <email address hidden>
on 2022-12-07
test-xml.c: Don't include unistd.h
It does not seem to be needed, and it is not universally available.
2ec9f57...
by
Chun-wei Fan <email address hidden>
on 2022-12-07
tests: Drop g_auto*() usage
This is to ensure that the code will build on non-CLang and non-GCC.
6ac257b...
by
Chun-wei Fan <email address hidden>
on 2022-12-07
tests/threaded.c: Avoid VLA usage
It's one of the things that will likely not be ever supported by Visual Studio.
5da26a3...
by
Chun-wei Fan <email address hidden>
on 2022-12-07
build: Support building DLLs properly on Visual Studio
...and Visual Studio-like compilers, such as clang-cl. Sadly, since we can
currently only set up the cflags when we define the library target in Meson, do
not allow one to build both static and shared builds in one shot.
a43aedb...
by
Chun-wei Fan <email address hidden>
on 2022-12-07
rest-private.h: Mark symbols with REST_EXPORT as needed
We need to export these symbols for the test and example programs.
89ff9fc...
by
Chun-wei Fan <email address hidden>
on 2022-12-07
rest-extras: Decorate public symbols with REST_EXPORT
This way, we can export these symbols with compiler directives when needed.
a196ab8...
by
Chun-wei Fan <email address hidden>
on 2022-12-07
public headers: Decorate public symbols with REST_EXPORT
...so that we can use compiler directives to export symbols, if needed. This
will also mark the generated symbols from glib-mkenums as well.