Do not remap framework assembly if it's version is higher than the runtime version
[mono.git] / eglib / src / eglib-config.hw
1 #ifndef __EGLIB_CONFIG_H
2 #define __EGLIB_CONFIG_H
3
4 /*
5  * System-dependent settings
6  */
7 #define G_OS_WIN32 1
8
9 #ifdef _MSC_VER
10
11 #include <io.h>
12
13 #define G_GNUC_PRETTY_FUNCTION   __FUNCTION__
14 #define G_GNUC_UNUSED            
15 #define G_BYTE_ORDER             1234
16 #define G_GNUC_NORETURN          
17 #define G_BREAKPOINT()           __debugbreak()
18 #define MAXPATHLEN 242
19
20 typedef uintptr_t gsize;
21 typedef intptr_t gssize;
22 typedef int pid_t;
23
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 G_GUINT64_FORMAT "d"
30 #define G_GINT64_FORMAT "d"
31 #define GPOINTER_TO_INT(ptr)   ((gint)(intptr_t) (ptr))
32 #define GPOINTER_TO_UINT(ptr)  ((guint)(intptr_t) (ptr))
33 #define GINT_TO_POINTER(v)     ((gpointer)(intptr_t) (v))
34 #define GUINT_TO_POINTER(v)    ((gpointer)(intptr_t) (v))
35
36 /* VS 2010 and later have stdint.h */
37 #if defined(_MSC_VER) && _MSC_VER < 1600
38 #define INT32_MAX 2147483647
39 #define INT32_MIN (~ INT32_MAX)
40 #define INT64_MAX 9223372036854775807i64
41 #define INT64_MIN (~INT64_MAX)
42 #define UINT32_MAX 0xffffffffU
43 #define UINT64_MAX 0xffffffffffffffffULL
44 #endif
45
46 #define STDOUT_FILENO (int)(intptr_t)stdout
47 #define STDERR_FILENO (int)(intptr_t)stderr
48
49
50 /* FIXME: what should this be ?*/
51 #define X_OK 4 /* This is really read */
52 #define WNOHANG 1
53 #define F_SETFD 1
54 #define FD_CLOEXEC 1
55
56 #undef inline
57 #define inline __inline
58
59 #define strtok_r strtok_s
60
61 #undef G_HAVE_UNISTD_H
62 #undef G_HAVE_SYS_TIME_H
63 #undef G_HAVE_SYS_WAIT_H
64 #undef G_HAVE_PWD_H
65 #undef G_HAVE_STRNDUP
66 #define G_HAVE_GETOPT_H 1
67
68 /* disable the following warnings 
69  * C4100: The formal parameter is not referenced in the body of the function. The unreferenced parameter is ignored. 
70  * C4127: conditional expression is constant
71 */
72 #pragma warning(disable:4100 4127)
73 #endif
74
75 typedef void * GPid;
76 #endif