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:
Tor Lillqvist
2010-09-06 15:56:16 +03:00
parent 2aa135ee3d
commit 548ddd5fe9
10 changed files with 44 additions and 1 deletions

View File

@@ -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)