]>
git.saurik.com Git - wxWidgets.git/blob - src/iodbc/windows.h
4 #ifndef APWIN /* don't reinclude */
11 # include <windows.h> /* normal windows.h */
13 # include <windowsx.h> /* windows extensions */
14 # define GetCurrentTask (HTASK)GetCurrentProcess
15 # define GetDOSEnvironment GetEnvironmentStrings
20 #else /* not windows */
21 /******* Common definitions and typedefs **********************/
47 typedef unsigned int UDWORD
;
51 typedef double LDOUBLE
;
59 #if defined (SVR4) && defined(I386)
66 typedef double LDOUBLE
;
68 #endif /* SVR4 && I386 */
81 /* typedef unsigned long DWORD; */
86 typedef unsigned int UINT
;
92 # define PASCAL _pascal
94 # define WINAPI _far _pascal
95 # define CALLBACK _far _pascal
96 # define EXPORT _export
108 /****** Simple types & common helper macros ********************/
110 /* typedef int BOOL; */
114 typedef unsigned char BYTE
;
115 /* typedef unsigned short WORD; */
117 #define LOBYTE(w) ((BYTE)(w))
118 #define HIBYTE(w) ((BYTE)(((UINT)(w) >> 8) & 0xFF))
120 #define LOWORD(l) ((WORD)(DWORD)(l))
121 #define HIWORD(l) ((WORD)((((DWORD)(l)) >> 16) & 0xFFFF))
123 #define MAKELONG(low, high) ((LONG)(((WORD)(low)) |\
124 (((DWORD)((WORD)(high))) << 16)))
126 #define max(a,b) (((a) > (b)) ? (a) : (b))
127 #define min(a,b) (((a) < (b)) ? (a) : (b))
129 /****** Common pointer types **********************************/
135 /****** Common handle types *************************************/
138 /* typedef UINT HWND; */
141 #endif /* ifdef not WIN */
143 #endif /* ifdef APWIN */