comparison src/s/cygwin32.h @ 321:19dcec799385 r21-0-58

Import from CVS: tag r21-0-58
author cvs
date Mon, 13 Aug 2007 10:46:44 +0200
parents afd57c14dfc8
children 4f79e16b1112
comparison
equal deleted inserted replaced
320:73c75c43c1f2 321:19dcec799385
69 * http://www.parallax.co.uk/~andyp */ 69 * http://www.parallax.co.uk/~andyp */
70 70
71 /* cheesy way to determine cygwin version */ 71 /* cheesy way to determine cygwin version */
72 #ifndef NOT_C_CODE 72 #ifndef NOT_C_CODE
73 #include <signal.h> 73 #include <signal.h>
74 #ifdef HAVE_CYGWIN32_VERSION_H 74 #ifdef HAVE_CYGWIN_VERSION_H
75 #include <cygwin32/version.h> 75 #include <cygwin/version.h>
76 #else 76 #else
77 #ifdef SIGIO 77 #ifdef SIGIO
78 #define CYGWIN_B19 78 #define CYGWIN_B19
79 #else 79 #else
80 #define BROKEN_CYGWIN 80 #define BROKEN_CYGWIN
83 83
84 extern void cygwin32_win32_to_posix_path_list(const char*, char*); 84 extern void cygwin32_win32_to_posix_path_list(const char*, char*);
85 extern int cygwin32_win32_to_posix_path_list_buf_size(const char*); 85 extern int cygwin32_win32_to_posix_path_list_buf_size(const char*);
86 extern void cygwin32_posix_to_win32_path_list(const char*, char*); 86 extern void cygwin32_posix_to_win32_path_list(const char*, char*);
87 extern int cygwin32_posix_to_win32_path_list_buf_size(const char*); 87 extern int cygwin32_posix_to_win32_path_list_buf_size(const char*);
88 #ifndef CYGWIN_DLL_VERSION_MAJOR 88 #ifndef CYGWIN_VERSION_DLL_MAJOR
89 struct timeval; 89 struct timeval;
90 struct timezone; 90 struct timezone;
91 struct itimerval; 91 struct itimerval;
92 struct stat; 92 struct stat;
93 extern int gettimeofday(struct timeval *tp, struct timezone *tzp); 93 extern int gettimeofday(struct timeval *tp, struct timezone *tzp);
113 #define SND_NODEFAULT 2 113 #define SND_NODEFAULT 2
114 #define SND_MEMORY 4 114 #define SND_MEMORY 4
115 #define SND_FILENAME 0x2000L 115 #define SND_FILENAME 0x2000L
116 #define VK_APPS 0x5D 116 #define VK_APPS 0x5D
117 #define SIF_TRACKPOS 0x0010 117 #define SIF_TRACKPOS 0x0010
118 #endif
119 #endif
120
121 #ifdef HAVE_MS_WINDOWS
122 #define HAVE_NTGUI
123 #define HAVE_FACES
124 #endif
125
126 #ifndef ORDINARY_LINK
127 #define ORDINARY_LINK
128 #endif
129
130 #define C_SWITCH_SYSTEM -Wno-sign-compare -fno-caller-saves
131 #define LIBS_SYSTEM -lwinmm
132
133 #define ICC_BAR_CLASSES 4 118 #define ICC_BAR_CLASSES 4
134 #define FW_BLACK FW_HEAVY 119 #define FW_BLACK FW_HEAVY
135 #define FW_ULTRABOLD FW_EXTRABOLD 120 #define FW_ULTRABOLD FW_EXTRABOLD
136 #define FW_DEMIBOLD FW_SEMIBOLD 121 #define FW_DEMIBOLD FW_SEMIBOLD
137 #define FW_ULTRALIGHT FW_EXTRALIGHT 122 #define FW_ULTRALIGHT FW_EXTRALIGHT
143 #define CBF_FAIL_REQUESTS 0x20000 128 #define CBF_FAIL_REQUESTS 0x20000
144 #define SZDDESYS_TOPIC "System" 129 #define SZDDESYS_TOPIC "System"
145 #define JOHAB_CHARSET 130 130 #define JOHAB_CHARSET 130
146 #define MAC_CHARSET 77 131 #define MAC_CHARSET 77
147 132
133 #endif
134 #endif
135
136 #ifdef HAVE_MS_WINDOWS
137 #define HAVE_NTGUI
138 #define HAVE_FACES
139 #endif
140
141 #ifndef ORDINARY_LINK
142 #define ORDINARY_LINK
143 #endif
144
145 #define C_SWITCH_SYSTEM -Wno-sign-compare -fno-caller-saves
146 #define LIBS_SYSTEM -lwinmm
147
148
148 #define TEXT_START -1 149 #define TEXT_START -1
149 #define TEXT_END -1 150 #define TEXT_END -1
150 #define DATA_END -1 151 #define DATA_END -1
151 #define HEAP_IN_DATA 152 #define HEAP_IN_DATA
152 #define UNEXEC "unexcw.o" 153 #define UNEXEC "unexcw.o"
153 /* #define BROKEN_SIGIO */ 154
155 #ifdef CYGWIN_VERSION_DLL_MAJOR
156 #define BROKEN_SIGIO
157 #else
154 #define PROCESS_IO_BLOCKING 158 #define PROCESS_IO_BLOCKING
159 #endif
155 #define strnicmp strncasecmp 160 #define strnicmp strncasecmp
156 #ifndef HAVE_SOCKETS 161 #ifndef HAVE_SOCKETS
157 #define HAVE_SOCKETS 162 #define HAVE_SOCKETS
158 #endif 163 #endif
159 #define OBJECTS_SYSTEM ntplay.o 164 #define OBJECTS_SYSTEM ntplay.o