Mercurial > dwindows
comparison compat.h @ 571:828e6a66c5c5
Add dw_listbox_list_append()
author | mhessling@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 20 Jul 2004 07:36:11 +0000 |
parents | 1a210e2f214b |
children | d7c338ac926a |
comparison
equal
deleted
inserted
replaced
570:052e9e4a59bd | 571:828e6a66c5c5 |
---|---|
92 | 92 |
93 #include <os2.h> | 93 #include <os2.h> |
94 | 94 |
95 #ifndef BKS_TABBEDDIALOG | 95 #ifndef BKS_TABBEDDIALOG |
96 #define BKS_TABBEDDIALOG 0x0800 | 96 #define BKS_TABBEDDIALOG 0x0800 |
97 #endif | 97 #endif |
98 | 98 |
99 #define PIPENAME "\\socket\\" __TARGET__ "%d" | 99 #define PIPENAME "\\socket\\" __TARGET__ "%d" |
100 #define TPIPENAME "\\socket\\" __TARGET__ "%d" | 100 #define TPIPENAME "\\socket\\" __TARGET__ "%d" |
101 #else | 101 #else |
102 #define PIPENAME "/tmp/" __TARGET__ "%d" | 102 #define PIPENAME "/tmp/" __TARGET__ "%d" |
121 | 121 |
122 /* Windows */ | 122 /* Windows */ |
123 #if defined(__WIN32__) || defined(WINNT) | 123 #if defined(__WIN32__) || defined(WINNT) |
124 | 124 |
125 #if defined(MSVC) && !defined(API) | 125 #if defined(MSVC) && !defined(API) |
126 #define API _cdecl | 126 # ifdef __MINGW32__ |
127 # ifdef BUILD_DLL | |
128 # define API APIENTRY __declspec(dllexport) | |
129 # else | |
130 # define API APIENTRY __declspec(dllimport) | |
131 # endif | |
132 # else | |
133 # define API _cdecl | |
134 # endif | |
127 #endif | 135 #endif |
128 | 136 |
129 #include <windows.h> | 137 #include <windows.h> |
130 #include <winsock.h> | 138 #include <winsock.h> |
131 #include <time.h> | 139 #include <time.h> |
132 #include <process.h> | 140 #include <process.h> |
133 #include <sys/stat.h> | 141 #include <sys/stat.h> |
142 | |
134 #ifdef MSVC | 143 #ifdef MSVC |
135 #include "platform/dirent.h" | 144 #include "platform/dirent.h" |
136 #else | 145 #else |
137 #include <dir.h> | 146 #include <dir.h> |
138 #include <dirent.h> | 147 #include <dirent.h> |
139 #endif | 148 #endif |
149 | |
140 #include <stdarg.h> | 150 #include <stdarg.h> |
141 | 151 |
142 #if defined(__CYGWIN32__) || defined(__MINGW32__) | 152 #if defined(__CYGWIN32__) /*|| defined(__MINGW32__)*/ |
143 #include <sys/un.h> | 153 #include <sys/un.h> |
144 #endif /* __CYGWIN32__ || __MINGW32__ */ | 154 #endif /* __CYGWIN32__ || __MINGW32__ */ |
145 | 155 |
146 #ifndef __CYGWIN32__ | 156 #ifndef __CYGWIN32__ |
147 #define NO_DOMAIN_SOCKETS | 157 #define NO_DOMAIN_SOCKETS |
233 int API locale_init(char *filename, int my_locale); | 243 int API locale_init(char *filename, int my_locale); |
234 char * API locale_string(char *default_text, int message); | 244 char * API locale_string(char *default_text, int message); |
235 void API nice_strformat(char *dest, long double val, int dec); | 245 void API nice_strformat(char *dest, long double val, int dec); |
236 void API initdir(int argc, char *argv[]); | 246 void API initdir(int argc, char *argv[]); |
237 int API setpath(char *path); | 247 int API setpath(char *path); |
238 #endif | 248 |
249 #ifdef __MINGW32__ | |
250 # undef API | |
251 # define API APIENTRY | |
252 #endif | |
253 | |
254 #endif |