1 #ifndef __EGLIB_CONFIG_H
2 #define __EGLIB_CONFIG_H
5 * System-dependent settings
13 #define G_GNUC_PRETTY_FUNCTION __FUNCTION__
15 #define G_BYTE_ORDER 1234
16 #define G_GNUC_NORETURN
17 #define G_BREAKPOINT() __debugbreak()
18 #define MAXPATHLEN 242
20 typedef uintptr_t gsize;
21 typedef intptr_t gssize;
24 #define G_DIR_SEPARATOR '\\'
25 #define G_DIR_SEPARATOR_S "\\"
26 #define G_SEARCHPATH_SEPARATOR_S ";"
27 #define G_SEARCHPATH_SEPARATOR ';'
28 #define G_GSIZE_FORMAT "d"
29 #define GPOINTER_TO_INT(ptr) ((gint)(intptr_t) (ptr))
30 #define GPOINTER_TO_UINT(ptr) ((guint)(intptr_t) (ptr))
31 #define GINT_TO_POINTER(v) ((gpointer)(intptr_t) (v))
32 #define GUINT_TO_POINTER(v) ((gpointer)(intptr_t) (v))
34 #define STDOUT_FILENO (int)(intptr_t)stdout
35 #define STDERR_FILENO (int)(intptr_t)stderr
37 /* FIXME: what should this be ?*/
38 #define X_OK 4 /* This is really read */
44 #define inline __inline
46 #define strtok_r strtok_s
48 #undef G_HAVE_UNISTD_H
49 #undef G_HAVE_SYS_TIME_H
50 #undef G_HAVE_SYS_WAIT_H
53 #define G_HAVE_GETOPT_H 1
55 /* disable the following warnings
56 * C4100: The formal parameter is not referenced in the body of the function. The unreferenced parameter is ignored.
57 * C4127: conditional expression is constant
59 #pragma warning(disable:4100 4127)