]>
git.saurik.com Git - wxWidgets.git/blob - utils/Install/inczip/os2cfg.h
1 /*---------------------------------------------------------------------------
2 OS/2 specific configuration section:
3 ---------------------------------------------------------------------------*/
9 # include <dos.h> /* for REGS macro (TC) or _dos_setftime (MSC) */
10 # ifdef __TURBOC__ /* includes Power C */
11 # include <sys/timeb.h> /* for structure ftime */
12 # ifndef __BORLANDC__ /* there appears to be a bug (?) in Borland's */
13 # include <mem.h> /* MEM.H related to __STDC__ and far poin- */
14 # endif /* ters. (dpk) [mem.h included for memcpy] */
19 # define S_IFMT 0xF000
20 # define timezone _timezone /* (underscore names work with */
21 # define tzset _tzset /* all versions of C Set) */
22 # define PIPE_ERROR (errno == EERRSET || errno == EOS2ERR)
36 /* Get asm routines to link properly without using "__cdecl": */
38 # pragma aux crc32 "_*" parm caller [] value [eax] modify [eax]
39 # pragma aux get_crc_table "_*" parm caller [] value [eax] \
41 # endif /* !USE_ZLIB */
44 # pragma aux crc32 "_*" parm caller [] value [ax dx] \
46 # pragma aux get_crc_table "_*" parm caller [] value [ax] \
48 # endif /* !USE_ZLIB */
49 # endif /* ?__386__ */
54 # define PIPE_ERROR (errno == EPIPE)
55 #endif /* __WATCOMC__ */
72 #if defined(M_I86CM) || defined(M_I86LM)
75 #if (defined(__COMPACT__) || defined(__LARGE__) || defined(__HUGE__))
85 # if defined(MSC) || defined(__WATCOMC__)
87 # define nearmalloc _nmalloc
88 # define nearfree _nfree
90 # if defined(__TURBOC__) && defined(DYNALLOC_CRCTAB)
91 # if defined(__COMPACT__) || defined(__LARGE__) || defined(__HUGE__)
92 # undef DYNALLOC_CRCTAB
96 # define nearmalloc malloc
97 # define nearfree free
101 /* TIMESTAMP is now supported on OS/2, so enable it by default */
102 #if (!defined(NOTIMESTAMP) && !defined(TIMESTAMP))
106 /* check that TZ environment variable is defined before using UTC times */
107 #if (!defined(NO_IZ_CHECK_TZ) && !defined(IZ_CHECK_TZ))
112 # define OS2_EAS /* for -l and -v listings (list.c) */
121 #define isupper(x) IsUpperNLS((unsigned char)(x))
122 #define tolower(x) ToLowerNLS((unsigned char)(x))
125 /* handlers for OEM <--> ANSI string conversions */
126 #ifndef _OS2_ISO_ANSI
127 /* use home-brewed conversion functions; internal charset is OEM */
128 # ifdef CRTL_CP_IS_ISO
129 # undef CRTL_CP_IS_ISO
131 # ifndef CRTL_CP_IS_OEM
132 # define CRTL_CP_IS_OEM
136 #endif /* !__os2cfg_h */