mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-11-01 00:42:16 +01:00
Fix build on Windows and possibly other non-Linux platforms
Include glibconfig.h in files that test G_OS_WIN32. Include headers for GLib APIs used conditionally where needed.
This commit is contained in:
@@ -70,6 +70,12 @@
|
||||
#include "gstrfuncs.h"
|
||||
#include "glibintl.h"
|
||||
|
||||
#ifdef G_PLATFORM_WIN32
|
||||
#include "garray.h"
|
||||
#include "gconvert.h"
|
||||
#include "gwin32.h"
|
||||
#endif
|
||||
|
||||
#ifdef MAXPATHLEN
|
||||
#define G_PATH_LENGTH MAXPATHLEN
|
||||
#elif defined (PATH_MAX)
|
||||
|
||||
Reference in New Issue
Block a user