Mercurial > hg > xemacs-beta
comparison src/s/cygwin32.h @ 371:cc15677e0335 r21-2b1
Import from CVS: tag r21-2b1
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:03:08 +0200 |
parents | 4711e16a8e49 |
children | 6240c7796c7a |
comparison
equal
deleted
inserted
replaced
370:bd866891f083 | 371:cc15677e0335 |
---|---|
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_CYGWIN_VERSION_H | |
75 #include <cygwin/version.h> | |
76 #else | |
77 #ifdef SIGIO | 74 #ifdef SIGIO |
78 #define CYGWIN_VERSION_DLL_MAJOR 19 | |
79 #define CYGWIN_VERSION_DLL_MINOR 0 | |
80 #define CYGWIN_B19 | 75 #define CYGWIN_B19 |
81 #else | 76 #else |
82 #define CYGWIN_VERSION_DLL_MAJOR 18 | |
83 #define CYGWIN_VERSION_DLL_MINOR 0 | |
84 #define BROKEN_CYGWIN | 77 #define BROKEN_CYGWIN |
85 #endif | 78 #endif |
86 #endif | |
87 | |
88 extern void cygwin32_win32_to_posix_path_list(const char*, char*); | 79 extern void cygwin32_win32_to_posix_path_list(const char*, char*); |
89 extern int cygwin32_win32_to_posix_path_list_buf_size(const char*); | 80 extern int cygwin32_win32_to_posix_path_list_buf_size(const char*); |
90 extern void cygwin32_posix_to_win32_path_list(const char*, char*); | 81 extern void cygwin32_posix_to_win32_path_list(const char*, char*); |
91 extern int cygwin32_posix_to_win32_path_list_buf_size(const char*); | 82 extern int cygwin32_posix_to_win32_path_list_buf_size(const char*); |
92 #if CYGWIN_VERSION_DLL_MAJOR < 20 | |
93 struct timeval; | 83 struct timeval; |
94 struct timezone; | 84 struct timezone; |
95 struct itimerval; | 85 struct itimerval; |
96 struct stat; | 86 struct stat; |
97 extern int gettimeofday(struct timeval *tp, struct timezone *tzp); | 87 extern int gettimeofday(struct timeval *tp, struct timezone *tzp); |
110 struct itimerval *ovalue); | 100 struct itimerval *ovalue); |
111 extern int utimes(char *file, struct timeval *tvp); | 101 extern int utimes(char *file, struct timeval *tvp); |
112 | 102 |
113 extern int srandom( unsigned seed); | 103 extern int srandom( unsigned seed); |
114 extern long random(); | 104 extern long random(); |
115 | 105 #endif |
116 #define SND_ASYNC 1 | 106 |
117 #define SND_NODEFAULT 2 | 107 #ifdef HAVE_MS_WINDOWS |
118 #define SND_MEMORY 4 | 108 #define HAVE_NTGUI |
119 #define SND_FILENAME 0x2000L | 109 #define HAVE_FACES |
120 #define VK_APPS 0x5D | 110 #endif |
111 | |
112 #ifndef ORDINARY_LINK | |
113 #define ORDINARY_LINK | |
114 #endif | |
115 | |
116 #define C_SWITCH_SYSTEM -Wno-sign-compare -fno-caller-saves | |
117 #define LIBS_SYSTEM -lwinmm | |
118 | |
119 #define ICC_BAR_CLASSES 4 | |
121 #define SIF_TRACKPOS 0x0010 | 120 #define SIF_TRACKPOS 0x0010 |
122 #define ICC_BAR_CLASSES 4 | |
123 #define FW_BLACK FW_HEAVY | 121 #define FW_BLACK FW_HEAVY |
124 #define FW_ULTRABOLD FW_EXTRABOLD | 122 #define FW_ULTRABOLD FW_EXTRABOLD |
125 #define FW_DEMIBOLD FW_SEMIBOLD | 123 #define FW_DEMIBOLD FW_SEMIBOLD |
126 #define FW_ULTRALIGHT FW_EXTRALIGHT | 124 #define FW_ULTRALIGHT FW_EXTRALIGHT |
125 #define VK_APPS 0x5D | |
127 #define APPCMD_FILTERINITS 0x20L | 126 #define APPCMD_FILTERINITS 0x20L |
128 #define CBF_FAIL_SELFCONNECTIONS 0x1000 | 127 #define CBF_FAIL_SELFCONNECTIONS 0x1000 |
129 #define CBF_SKIP_ALLNOTIFICATIONS 0x3C0000 | 128 #define CBF_SKIP_ALLNOTIFICATIONS 0x3C0000 |
130 #define CBF_FAIL_ADVISES 0x4000 | 129 #define CBF_FAIL_ADVISES 0x4000 |
131 #define CBF_FAIL_POKES 0x10000 | 130 #define CBF_FAIL_POKES 0x10000 |
132 #define CBF_FAIL_REQUESTS 0x20000 | 131 #define CBF_FAIL_REQUESTS 0x20000 |
133 #define SZDDESYS_TOPIC "System" | 132 #define SZDDESYS_TOPIC "System" |
133 #define SND_ASYNC 1 | |
134 #define SND_NODEFAULT 2 | |
135 #define SND_MEMORY 4 | |
136 #define SND_FILENAME 0x2000L | |
134 #define JOHAB_CHARSET 130 | 137 #define JOHAB_CHARSET 130 |
135 #define MAC_CHARSET 77 | 138 #define MAC_CHARSET 77 |
136 | |
137 #endif | |
138 #endif | |
139 | |
140 #ifndef SPI_GETWHEELSCROLLLINES | |
141 #define SPI_GETWHEELSCROLLLINES 104 | |
142 #endif | |
143 #ifndef WHEEL_PAGESCROLL | |
144 #define WHEEL_PAGESCROLL (UINT_MAX) | |
145 #endif | |
146 #ifndef WHEEL_DELTA | |
147 #define WHEEL_DELTA 120 | |
148 #endif | |
149 #ifndef WM_MOUSEWHEEL | |
150 #define WM_MOUSEWHEEL 0x20A | |
151 #endif | |
152 | |
153 #ifdef HAVE_MS_WINDOWS | |
154 #define HAVE_NTGUI | |
155 #define HAVE_FACES | |
156 #endif | |
157 | |
158 #ifndef ORDINARY_LINK | |
159 #define ORDINARY_LINK | |
160 #endif | |
161 | |
162 #define C_SWITCH_SYSTEM -Wno-sign-compare -fno-caller-saves | |
163 #define LIBS_SYSTEM -lwinmm | |
164 | |
165 | 139 |
166 #define TEXT_START -1 | 140 #define TEXT_START -1 |
167 #define TEXT_END -1 | 141 #define TEXT_END -1 |
168 #define DATA_END -1 | 142 #define DATA_END -1 |
169 #define HEAP_IN_DATA | 143 #define HEAP_IN_DATA |
170 #define UNEXEC "unexcw.o" | 144 #define UNEXEC "unexcw.o" |
171 | 145 /* #define BROKEN_SIGIO */ |
172 #ifdef CYGWIN_VERSION_DLL_MAJOR | |
173 #if 0 | |
174 /* ### FIXME: although defining BROKEN_SIGIO is correct for proper ^G | |
175 behavior, bugs in cygwin mean that xemacs locks up frequently if | |
176 this is defined. */ | |
177 #define BROKEN_SIGIO | |
178 #endif | |
179 #else | |
180 #define PROCESS_IO_BLOCKING | 146 #define PROCESS_IO_BLOCKING |
181 #endif | |
182 #define strnicmp strncasecmp | 147 #define strnicmp strncasecmp |
183 #ifndef HAVE_SOCKETS | 148 #ifndef HAVE_SOCKETS |
184 #define HAVE_SOCKETS | 149 #define HAVE_SOCKETS |
185 #endif | 150 #endif |
186 #define OBJECTS_SYSTEM ntplay.o | 151 #define OBJECTS_SYSTEM ntplay.o |