Mercurial > hg > xemacs-beta
comparison src/s/cygwin32.h @ 398:74fd4e045ea6 r21-2-29
Import from CVS: tag r21-2-29
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:13:30 +0200 |
parents | 1f50e6fe4f3f |
children | a86b2b5e0111 |
comparison
equal
deleted
inserted
replaced
397:f4aeb21a5bad | 398:74fd4e045ea6 |
---|---|
36 * windows '95 - I haven't tested this under '95, it will probably | 36 * windows '95 - I haven't tested this under '95, it will probably |
37 * build but I konw there are some limitations with cygwin under 95 so | 37 * build but I konw there are some limitations with cygwin under 95 so |
38 * YMMV. I build with NT4 SP3. | 38 * YMMV. I build with NT4 SP3. |
39 * | 39 * |
40 * Andy Piper <andy@xemacs.org> 8/1/98 | 40 * Andy Piper <andy@xemacs.org> 8/1/98 |
41 * http://www.parallax.co.uk/~andyp */ | 41 * http://www.xemacs.freeserve.co.uk/ */ |
42 | 42 |
43 /* cheesy way to determine cygwin version */ | 43 /* cheesy way to determine cygwin version */ |
44 #ifndef NOT_C_CODE | 44 #ifndef NOT_C_CODE |
45 #include <signal.h> | 45 #include <signal.h> |
46 #ifdef HAVE_CYGWIN_VERSION_H | 46 #ifdef HAVE_CYGWIN_VERSION_H |
47 #include <cygwin/version.h> | 47 #include <cygwin/version.h> |
48 #else | 48 #else |
49 #ifdef SIGIO | 49 #ifdef SIGIO |
50 #define CYGWIN_VERSION_DLL_MAJOR 19 | |
51 #define CYGWIN_VERSION_DLL_MINOR 0 | |
50 #define CYGWIN_B19 | 52 #define CYGWIN_B19 |
51 #else | 53 #else |
54 #define CYGWIN_VERSION_DLL_MAJOR 18 | |
55 #define CYGWIN_VERSION_DLL_MINOR 0 | |
52 #define BROKEN_CYGWIN | 56 #define BROKEN_CYGWIN |
53 #endif | 57 #endif |
54 #endif | 58 #endif |
55 | 59 |
56 extern void cygwin32_win32_to_posix_path_list(const char*, char*); | 60 extern void cygwin32_win32_to_posix_path_list(const char*, char*); |
57 extern int cygwin32_win32_to_posix_path_list_buf_size(const char*); | 61 extern int cygwin32_win32_to_posix_path_list_buf_size(const char*); |
58 extern void cygwin32_posix_to_win32_path_list(const char*, char*); | 62 extern void cygwin32_posix_to_win32_path_list(const char*, char*); |
59 extern int cygwin32_posix_to_win32_path_list_buf_size(const char*); | 63 extern int cygwin32_posix_to_win32_path_list_buf_size(const char*); |
60 #ifndef CYGWIN_VERSION_DLL_MAJOR | 64 #if CYGWIN_VERSION_DLL_MAJOR < 20 |
61 struct timeval; | 65 struct timeval; |
62 struct timezone; | 66 struct timezone; |
63 struct itimerval; | 67 struct itimerval; |
64 struct stat; | 68 struct stat; |
65 extern int gettimeofday(struct timeval *tp, struct timezone *tzp); | 69 extern int gettimeofday(struct timeval *tp, struct timezone *tzp); |
103 #define MAC_CHARSET 77 | 107 #define MAC_CHARSET 77 |
104 | 108 |
105 #endif | 109 #endif |
106 #endif | 110 #endif |
107 | 111 |
112 #ifndef SPI_GETWHEELSCROLLLINES | |
113 #define SPI_GETWHEELSCROLLLINES 104 | |
114 #endif | |
115 #ifndef WHEEL_PAGESCROLL | |
116 #define WHEEL_PAGESCROLL (UINT_MAX) | |
117 #endif | |
118 #ifndef WHEEL_DELTA | |
119 #define WHEEL_DELTA 120 | |
120 #endif | |
121 #ifndef WM_MOUSEWHEEL | |
122 #define WM_MOUSEWHEEL 0x20A | |
123 #endif | |
124 #ifndef TCS_BOTTOM | |
125 #define TCS_BOTTOM 0x0002 | |
126 #endif | |
127 #ifndef TCS_VERTICAL | |
128 #define TCS_VERTICAL 0x0080 | |
129 #endif | |
130 #ifndef PHYSICALWIDTH | |
131 #define PHYSICALWIDTH 110 | |
132 #endif | |
133 #ifndef PHYSICALHEIGHT | |
134 #define PHYSICALHEIGHT 111 | |
135 #endif | |
136 #ifndef PHYSICALOFFSETX | |
137 #define PHYSICALOFFSETX 112 | |
138 #endif | |
139 #ifndef PHYSICALOFFSETY | |
140 #define PHYSICALOFFSETY 113 | |
141 #endif | |
142 | |
143 | |
108 #define PBS_SMOOTH 0x01 | 144 #define PBS_SMOOTH 0x01 |
109 | 145 |
110 #ifdef HAVE_MS_WINDOWS | 146 #ifdef HAVE_MS_WINDOWS |
111 #define HAVE_NTGUI | 147 #define HAVE_NTGUI |
112 #define HAVE_FACES | 148 #define HAVE_FACES |
126 #define HEAP_IN_DATA | 162 #define HEAP_IN_DATA |
127 #define UNEXEC "unexcw.o" | 163 #define UNEXEC "unexcw.o" |
128 | 164 |
129 #ifdef CYGWIN_VERSION_DLL_MAJOR | 165 #ifdef CYGWIN_VERSION_DLL_MAJOR |
130 #if 0 | 166 #if 0 |
131 /* ### FIXME: although defining BROKEN_SIGIO is correct for proper ^G | 167 /* #### FIXME: although defining BROKEN_SIGIO is correct for proper ^G |
132 behavior, bugs in cygwin mean that xemacs locks up frequently if | 168 behavior, bugs in cygwin mean that xemacs locks up frequently if |
133 this is defined. */ | 169 this is defined. */ |
134 #define BROKEN_SIGIO | 170 #define BROKEN_SIGIO |
135 #endif | 171 #endif |
136 #else | 172 #else |