mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 07:56:14 +01:00
Merge branch 'docs-2963' into 'main'
README.win32.md: Update info for G_PLATFORM_WIN32 Closes #2963 See merge request GNOME/glib!3363
This commit is contained in:
commit
9e83c0e37e
@ -30,17 +30,16 @@ On Windows setting up a correct build environment is very similar to typing
|
|||||||
The following preprocessor macros are to be used for conditional
|
The following preprocessor macros are to be used for conditional
|
||||||
compilation related to Win32 in GLib-using code:
|
compilation related to Win32 in GLib-using code:
|
||||||
|
|
||||||
- `G_OS_WIN32` is defined when compiling for native Win32, without
|
- `G_OS_WIN32` and `G_PLATFORM_WIN32` are defined when compiling for native
|
||||||
any POSIX emulation, other than to the extent provided by the
|
Win32, without any POSIX emulation, other than to the extent provided by
|
||||||
bundled Microsoft C library.
|
the bundled Microsoft C library. Either can be used to check when
|
||||||
|
conditionally compiling GLib-using code for Win32.
|
||||||
|
|
||||||
- `G_WITH_CYGWIN` is defined if compiling for the Cygwin
|
- `G_WITH_CYGWIN` is defined if compiling for the Cygwin
|
||||||
environment. Note that `G_OS_WIN32` is *not* defined in that case, as
|
environment. Note that `G_OS_WIN32` is *not* defined in that case, as
|
||||||
Cygwin is supposed to behave like Unix. `G_OS_UNIX` *is* defined by a GLib
|
Cygwin is supposed to behave like Unix. `G_OS_UNIX` *is* defined by a GLib
|
||||||
for Cygwin.
|
for Cygwin, but `G_PLATFORM_WIN32` is *no longer* defined by GLib for
|
||||||
|
Cygwin.
|
||||||
- `G_PLATFORM_WIN32` is defined when either `G_OS_WIN32` or `G_WITH_CYGWIN`
|
|
||||||
is defined.
|
|
||||||
|
|
||||||
These macros are defined in `glibconfig.h`, and are thus available in
|
These macros are defined in `glibconfig.h`, and are thus available in
|
||||||
all source files that include `<glib.h>`.
|
all source files that include `<glib.h>`.
|
||||||
|
Loading…
Reference in New Issue
Block a user