Mercurial > hg > xemacs-beta
comparison src/s/cygwin32.h @ 404:2f8bb876ab1d r21-2-32
Import from CVS: tag r21-2-32
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:16:07 +0200 |
parents | a86b2b5e0111 |
children | 501cfd01ee6d |
comparison
equal
deleted
inserted
replaced
403:9f011ab08d48 | 404:2f8bb876ab1d |
---|---|
40 * Andy Piper <andy@xemacs.org> 8/1/98 | 40 * Andy Piper <andy@xemacs.org> 8/1/98 |
41 * http://www.xemacs.freeserve.co.uk/ */ | 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 | 50 # define CYGWIN_VERSION_DLL_MAJOR 19 |
51 #define CYGWIN_VERSION_DLL_MINOR 0 | 51 # define CYGWIN_VERSION_DLL_MINOR 0 |
52 #define CYGWIN_B19 | 52 # define CYGWIN_B19 |
53 #else | 53 # else |
54 #define CYGWIN_VERSION_DLL_MAJOR 18 | 54 # define CYGWIN_VERSION_DLL_MAJOR 18 |
55 #define CYGWIN_VERSION_DLL_MINOR 0 | 55 # define CYGWIN_VERSION_DLL_MINOR 0 |
56 #define BROKEN_CYGWIN | 56 # define BROKEN_CYGWIN |
57 #endif | 57 # endif |
58 #endif | 58 # endif |
59 | 59 |
60 extern void cygwin32_win32_to_posix_path_list(const char*, char*); | 60 extern void cygwin32_win32_to_posix_path_list(const char*, char*); |
61 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*); |
62 extern void cygwin32_posix_to_win32_path_list(const char*, char*); | 62 extern void cygwin32_posix_to_win32_path_list(const char*, char*); |
63 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*); |
64 #if CYGWIN_VERSION_DLL_MAJOR < 20 | 64 # if CYGWIN_VERSION_DLL_MAJOR < 20 |
65 struct timeval; | 65 struct timeval; |
66 struct timezone; | 66 struct timezone; |
67 struct itimerval; | 67 struct itimerval; |
68 struct stat; | 68 struct stat; |
69 extern int gettimeofday(struct timeval *tp, struct timezone *tzp); | 69 extern int gettimeofday(struct timeval *tp, struct timezone *tzp); |
83 extern int utimes(char *file, struct timeval *tvp); | 83 extern int utimes(char *file, struct timeval *tvp); |
84 | 84 |
85 extern int srandom( unsigned seed); | 85 extern int srandom( unsigned seed); |
86 extern long random(); | 86 extern long random(); |
87 | 87 |
88 #define SND_ASYNC 1 | 88 # define SND_ASYNC 1 |
89 #define SND_NODEFAULT 2 | 89 # define SND_NODEFAULT 2 |
90 #define SND_MEMORY 4 | 90 # define SND_MEMORY 4 |
91 #define SND_FILENAME 0x2000L | 91 # define SND_FILENAME 0x2000L |
92 #define VK_APPS 0x5D | 92 # define VK_APPS 0x5D |
93 #define SIF_TRACKPOS 0x0010 | 93 # define SIF_TRACKPOS 0x0010 |
94 #define ICC_BAR_CLASSES 4 | 94 # define ICC_BAR_CLASSES 4 |
95 #define FW_BLACK FW_HEAVY | 95 # define FW_BLACK FW_HEAVY |
96 #define FW_ULTRABOLD FW_EXTRABOLD | 96 # define FW_ULTRABOLD FW_EXTRABOLD |
97 #define FW_DEMIBOLD FW_SEMIBOLD | 97 # define FW_DEMIBOLD FW_SEMIBOLD |
98 #define FW_ULTRALIGHT FW_EXTRALIGHT | 98 # define FW_ULTRALIGHT FW_EXTRALIGHT |
99 #define APPCMD_FILTERINITS 0x20L | 99 # define APPCMD_FILTERINITS 0x20L |
100 #define CBF_FAIL_SELFCONNECTIONS 0x1000 | 100 # define CBF_FAIL_SELFCONNECTIONS 0x1000 |
101 #define CBF_SKIP_ALLNOTIFICATIONS 0x3C0000 | 101 # define CBF_SKIP_ALLNOTIFICATIONS 0x3C0000 |
102 #define CBF_FAIL_ADVISES 0x4000 | 102 # define CBF_FAIL_ADVISES 0x4000 |
103 #define CBF_FAIL_POKES 0x10000 | 103 # define CBF_FAIL_POKES 0x10000 |
104 #define CBF_FAIL_REQUESTS 0x20000 | 104 # define CBF_FAIL_REQUESTS 0x20000 |
105 #define SZDDESYS_TOPIC "System" | 105 # define SZDDESYS_TOPIC "System" |
106 #define JOHAB_CHARSET 130 | 106 # define JOHAB_CHARSET 130 |
107 #define MAC_CHARSET 77 | 107 # define MAC_CHARSET 77 |
108 | 108 # endif |
109 #endif | |
110 #endif | 109 #endif |
111 | 110 |
112 #ifndef SPI_GETWHEELSCROLLLINES | 111 #ifndef SPI_GETWHEELSCROLLLINES |
113 #define SPI_GETWHEELSCROLLLINES 104 | 112 #define SPI_GETWHEELSCROLLLINES 104 |
114 #endif | 113 #endif |
158 | 157 |
159 #define TEXT_START -1 | 158 #define TEXT_START -1 |
160 #define TEXT_END -1 | 159 #define TEXT_END -1 |
161 #define DATA_END -1 | 160 #define DATA_END -1 |
162 #define HEAP_IN_DATA | 161 #define HEAP_IN_DATA |
162 #define NO_LIM_DATA | |
163 #define UNEXEC "unexcw.o" | 163 #define UNEXEC "unexcw.o" |
164 | 164 |
165 #ifdef CYGWIN_VERSION_DLL_MAJOR | 165 #ifdef CYGWIN_VERSION_DLL_MAJOR |
166 #if 0 | 166 #if 0 |
167 /* #### FIXME: although defining BROKEN_SIGIO is correct for proper ^G | 167 /* #### FIXME: although defining BROKEN_SIGIO is correct for proper ^G |