Skip to content

glib-sys: Add missing includes in manual.h #1361

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions glib/sys/tests/manual.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,23 @@
#include <glib.h>
#include <glib-object.h>

#ifndef G_PLATFORM_WIN32
// glib-unix.h is not included automatically
#include <glib-unix.h>
// polyfill the WIN32 constants on non-Win32 platforms
typedef enum
{
G_WIN32_OS_ANY,
G_WIN32_OS_WORKSTATION,
G_WIN32_OS_SERVER,
} GWin32OSType;
#endif

// polyfill when the platform doesn't define tracing macros
#ifndef G_TRACE_CURRENT_TIME
#define G_TRACE_CURRENT_TIME 0
#endif

// included in Gir on all platforms even though it is only present on windows
#ifndef G_WIN32_MSG_HANDLE
#define G_WIN32_MSG_HANDLE 19981206
Expand Down
Loading