]>
git.saurik.com Git - wxWidgets.git/blob - src/iodbc/config.h
4 # if !defined(WINDOWS) && !defined(WIN32_SYSTEM) && !defined(OS2)
8 # include <sys/types.h>
12 # define MEM_ALLOC(size) (malloc((size_t)(size)))
13 # define MEM_FREE(ptr) {if(ptr) free(ptr);}
15 # define STRCPY(t, s) (strcpy((char*)(t), (char*)(s)))
16 # define STRNCPY(t,s,n) (strncpy((char*)(t), (char*)(s), (size_t)(n)))
17 # define STRCAT(t, s) (strcat((char*)(t), (char*)(s)))
18 # define STRNCAT(t,s,n) (strncat((char*)(t), (char*)(s), (size_t)(n)))
19 # define STREQ(a, b) (strcmp((char*)(a), (char*)(b)) == 0)
20 # define STRLEN(str) ((str)? strlen((char*)(str)):0)
26 typedef signed short SSHOR
;
32 // KB: I don't see where HWND and BOOL could get defined before here,
33 // but putting in the #ifndef's solved the compilation problem on Solaris.
43 # if defined(WINDOWS) || defined(WIN32_SYSTEM)
46 # include <windowsx.h>
49 # define MEM_ALLOC(size) (fmalloc((size_t)(size)))
50 # define MEM_FREE(ptr) ((ptr)? ffree((PTR)(ptr)):0))
51 # define STRCPY(t, s) (fstrcpy((char FAR*)(t), (char FAR*)(s)))
52 # define STRNCPY(t,s,n) (fstrncpy((char FAR*)(t), (char FAR*)(s), (size_t)(n)))
53 # define STRLEN(str) ((str)? fstrlen((char FAR*)(str)):0)
54 # define STREQ(a, b) (fstrcmp((char FAR*)(a), (char FAR*)(b) == 0)
58 # define MEM_ALLOC(size) (farmalloc((unsigned long)(size))
59 # define MEM_FREE(ptr) ((ptr)? farfree((void far*)(ptr)):0)
60 # define STRCPY(t, s) (_fstrcpy((char FAR*)(t), (char FAR*)(s)))
61 # define STRNCPY(t,s,n) (_fstrncpy((char FAR*)(t), (char FAR*)(s), (size_t)(n)))
62 # define STRLEN(str) ((str)? _fstrlen((char FAR*)(str)):0)
63 # define STREQ(a, b) (_fstrcmp((char FAR*)(a), (char FAR*)(b) == 0)
74 # define INCL_DOSMODULEMGR /* Module Manager values */
75 # define INCL_DOSERRORS /* Error values */
82 # define MEM_ALLOC(size) (malloc((size_t)(size)))
83 # define MEM_FREE(ptr) (free((ptr)))
84 # define STRCPY(t, s) (strcpy((char*)(t), (char*)(s)))
85 # define STRNCPY(t,s,n) (strncpy((char*)(t), (char*)(s), (size_t)(n)))
86 # define STRCAT(t, s) (strcat((char*)(t), (char*)(s)))
87 # define STRNCAT(t,s,n) (strncat((char*)(t), (char*)(s), (size_t)(n)))
88 # define STRLEN(str) ((str)? strlen((char*)(str)):0)
89 # define STREQ(a, b) (0 == strcmp((char *)(a), (char *)(b)))
91 typedef signed short SSHOR
;
103 # define NULL ((void FAR*)0UL)