1 #ifndef __EGLIB_CONFIG_H
2 #define __EGLIB_CONFIG_H
5 * System-dependent settings
14 #define G_GNUC_PRETTY_FUNCTION __FUNCTION__
16 #define G_BYTE_ORDER 1234
17 #define G_GNUC_NORETURN
18 #define G_BREAKPOINT() __debugbreak()
19 #define MAXPATHLEN 242
22 typedef ptrdiff_t gssize;
25 #define G_DIR_SEPARATOR '\\'
26 #define G_DIR_SEPARATOR_S "\\"
27 #define G_SEARCHPATH_SEPARATOR_S ";"
28 #define G_SEARCHPATH_SEPARATOR ';'
31 // Correct for Win32 and Win64 since circa 2000.
32 #define G_GSIZE_FORMAT "Iu"
34 // Correct for Win32 since circa 1992.
35 #define G_GSIZE_FORMAT "u"
38 // https://msdn.microsoft.com/en-us/library/40bbyw78.aspx
39 #define STDOUT_FILENO (1)
40 #define STDERR_FILENO (2)
42 /* FIXME: what should this be ?*/
43 #define X_OK 4 /* This is really read */
49 #define inline __inline
51 #define strtok_r strtok_s
53 #undef G_HAVE_UNISTD_H
54 #undef G_HAVE_SYS_TIME_H
55 #undef G_HAVE_SYS_WAIT_H
58 #define G_HAVE_GETOPT_H 1
60 /* disable the following warnings
61 * C4100: The formal parameter is not referenced in the body of the function. The unreferenced parameter is ignored.
62 * C4127: conditional expression is constant
64 #pragma warning(disable:4100 4127)