]>
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
;
37 # if defined(WINDOWS) || defined(WIN32_SYSTEM)
40 # include <windowsx.h>
43 # define MEM_ALLOC(size) (fmalloc((size_t)(size)))
44 # define MEM_FREE(ptr) ((ptr)? ffree((PTR)(ptr)):0))
45 # define STRCPY(t, s) (fstrcpy((char FAR*)(t), (char FAR*)(s)))
46 # define STRNCPY(t,s,n) (fstrncpy((char FAR*)(t), (char FAR*)(s), (size_t)(n)))
47 # define STRLEN(str) ((str)? fstrlen((char FAR*)(str)):0)
48 # define STREQ(a, b) (fstrcmp((char FAR*)(a), (char FAR*)(b) == 0)
52 # define MEM_ALLOC(size) (farmalloc((unsigned long)(size))
53 # define MEM_FREE(ptr) ((ptr)? farfree((void far*)(ptr)):0)
54 # define STRCPY(t, s) (_fstrcpy((char FAR*)(t), (char FAR*)(s)))
55 # define STRNCPY(t,s,n) (_fstrncpy((char FAR*)(t), (char FAR*)(s), (size_t)(n)))
56 # define STRLEN(str) ((str)? _fstrlen((char FAR*)(str)):0)
57 # define STREQ(a, b) (_fstrcmp((char FAR*)(a), (char FAR*)(b) == 0)
68 # define INCL_DOSMODULEMGR /* Module Manager values */
69 # define INCL_DOSERRORS /* Error values */
76 # define MEM_ALLOC(size) (malloc((size_t)(size)))
77 # define MEM_FREE(ptr) (free((ptr)))
78 # define STRCPY(t, s) (strcpy((char*)(t), (char*)(s)))
79 # define STRNCPY(t,s,n) (strncpy((char*)(t), (char*)(s), (size_t)(n)))
80 # define STRCAT(t, s) (strcat((char*)(t), (char*)(s)))
81 # define STRNCAT(t,s,n) (strncat((char*)(t), (char*)(s), (size_t)(n)))
82 # define STRLEN(str) ((str)? strlen((char*)(str)):0)
83 # define STREQ(a, b) (0 == strcmp((char *)(a), (char *)(b)))
85 typedef signed short SSHOR
;
97 # define NULL ((void FAR*)0UL)