comparison src/s/cygwin32.h @ 373:6240c7796c7a r21-2b2

Import from CVS: tag r21-2b2
author cvs
date Mon, 13 Aug 2007 11:04:06 +0200
parents cc15677e0335
children a300bb07d72d
comparison
equal deleted inserted replaced
372:49e1ed2d7ed8 373:6240c7796c7a
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
75 #include <cygwin32/version.h>
76 #else
74 #ifdef SIGIO 77 #ifdef SIGIO
75 #define CYGWIN_B19 78 #define CYGWIN_B19
76 #else 79 #else
77 #define BROKEN_CYGWIN 80 #define BROKEN_CYGWIN
78 #endif 81 #endif
82 #endif
83
79 extern void cygwin32_win32_to_posix_path_list(const char*, char*); 84 extern void cygwin32_win32_to_posix_path_list(const char*, char*);
80 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*);
81 extern void cygwin32_posix_to_win32_path_list(const char*, char*); 86 extern void cygwin32_posix_to_win32_path_list(const char*, char*);
82 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
83 struct timeval; 89 struct timeval;
84 struct timezone; 90 struct timezone;
85 struct itimerval; 91 struct itimerval;
86 struct stat; 92 struct stat;
87 extern int gettimeofday(struct timeval *tp, struct timezone *tzp); 93 extern int gettimeofday(struct timeval *tp, struct timezone *tzp);
100 struct itimerval *ovalue); 106 struct itimerval *ovalue);
101 extern int utimes(char *file, struct timeval *tvp); 107 extern int utimes(char *file, struct timeval *tvp);
102 108
103 extern int srandom( unsigned seed); 109 extern int srandom( unsigned seed);
104 extern long random(); 110 extern long random();
111
112 #define SND_ASYNC 1
113 #define SND_NODEFAULT 2
114 #define SND_MEMORY 4
115 #define SND_FILENAME 0x2000L
116 #define VK_APPS 0x5D
117 #define SIF_TRACKPOS 0x0010
118 #endif
105 #endif 119 #endif
106 120
107 #ifdef HAVE_MS_WINDOWS 121 #ifdef HAVE_MS_WINDOWS
108 #define HAVE_NTGUI 122 #define HAVE_NTGUI
109 #define HAVE_FACES 123 #define HAVE_FACES
115 129
116 #define C_SWITCH_SYSTEM -Wno-sign-compare -fno-caller-saves 130 #define C_SWITCH_SYSTEM -Wno-sign-compare -fno-caller-saves
117 #define LIBS_SYSTEM -lwinmm 131 #define LIBS_SYSTEM -lwinmm
118 132
119 #define ICC_BAR_CLASSES 4 133 #define ICC_BAR_CLASSES 4
120 #define SIF_TRACKPOS 0x0010
121 #define FW_BLACK FW_HEAVY 134 #define FW_BLACK FW_HEAVY
122 #define FW_ULTRABOLD FW_EXTRABOLD 135 #define FW_ULTRABOLD FW_EXTRABOLD
123 #define FW_DEMIBOLD FW_SEMIBOLD 136 #define FW_DEMIBOLD FW_SEMIBOLD
124 #define FW_ULTRALIGHT FW_EXTRALIGHT 137 #define FW_ULTRALIGHT FW_EXTRALIGHT
125 #define VK_APPS 0x5D
126 #define APPCMD_FILTERINITS 0x20L 138 #define APPCMD_FILTERINITS 0x20L
127 #define CBF_FAIL_SELFCONNECTIONS 0x1000 139 #define CBF_FAIL_SELFCONNECTIONS 0x1000
128 #define CBF_SKIP_ALLNOTIFICATIONS 0x3C0000 140 #define CBF_SKIP_ALLNOTIFICATIONS 0x3C0000
129 #define CBF_FAIL_ADVISES 0x4000 141 #define CBF_FAIL_ADVISES 0x4000
130 #define CBF_FAIL_POKES 0x10000 142 #define CBF_FAIL_POKES 0x10000
131 #define CBF_FAIL_REQUESTS 0x20000 143 #define CBF_FAIL_REQUESTS 0x20000
132 #define SZDDESYS_TOPIC "System" 144 #define SZDDESYS_TOPIC "System"
133 #define SND_ASYNC 1
134 #define SND_NODEFAULT 2
135 #define SND_MEMORY 4
136 #define SND_FILENAME 0x2000L
137 #define JOHAB_CHARSET 130 145 #define JOHAB_CHARSET 130
138 #define MAC_CHARSET 77 146 #define MAC_CHARSET 77
139 147
140 #define TEXT_START -1 148 #define TEXT_START -1
141 #define TEXT_END -1 149 #define TEXT_END -1