New ACC version.
committer: mfx <mfx> 1049665216 +0000
This commit is contained in:
parent
a1064dc2cb
commit
90161bc3a7
@ -22,7 +22,7 @@
|
||||
*/
|
||||
|
||||
|
||||
#define ACC_VERSION 20030401L
|
||||
#define ACC_VERSION 20030405L
|
||||
|
||||
#if !defined(ACC_CONFIG_INCLUDE)
|
||||
# define ACC_CONFIG_INCLUDE(file) file
|
||||
|
||||
@ -33,24 +33,16 @@
|
||||
#if (ACC_OS_DOS16 || ACC_OS_OS216 || ACC_OS_WIN16)
|
||||
# define ACC_ARCH_IA16 1
|
||||
# define ACC_INFO_ARCH "ia16"
|
||||
#elif defined(__386__) || defined(__i386__) || defined(__i386) || defined(_M_IX86)
|
||||
# define ACC_ARCH_IA32 1
|
||||
# define ACC_INFO_ARCH "ia32"
|
||||
#elif defined(__ia64__) || defined(_M_IA64)
|
||||
# define ACC_ARCH_IA64 1
|
||||
# define ACC_INFO_ARCH "ia64"
|
||||
#elif (ACC_OS_DOS32 || ACC_OS_OS2 || ACC_OS_WIN32)
|
||||
# if defined(_MSC_VER) && !defined(_M_IX86)
|
||||
# error "unexpected CPU architechture"
|
||||
# endif
|
||||
# define ACC_ARCH_IA32 1
|
||||
# define ACC_INFO_ARCH "ia32"
|
||||
# error "missing define for CPU architechture"
|
||||
#elif (ACC_OS_WIN64)
|
||||
# if defined(_MSC_VER) && !defined(_M_IA64)
|
||||
# error "unexpected CPU architechture"
|
||||
# endif
|
||||
# define ACC_ARCH_IA64 1
|
||||
# define ACC_INFO_ARCH "ia64"
|
||||
#elif defined(__386__) || defined(__i386__) || defined(__i386)
|
||||
# define ACC_ARCH_IA32 1
|
||||
# define ACC_INFO_ARCH "ia32"
|
||||
#elif defined(__ia64__)
|
||||
# define ACC_ARCH_IA64 1
|
||||
# define ACC_INFO_ARCH "ia64"
|
||||
# error "missing define for CPU architechture"
|
||||
#elif (ACC_OS_TOS) || defined(__m68000__)
|
||||
# define ACC_ARCH_M68K 1
|
||||
# define ACC_INFO_ARCH "m68k"
|
||||
|
||||
@ -20,6 +20,7 @@
|
||||
#define STDC_HEADERS 1
|
||||
|
||||
#define HAVE_CONIO_H 1
|
||||
#define HAVE_CTYPE_H 1
|
||||
#define HAVE_DOS_H 1
|
||||
#define HAVE_ERRNO_H 1
|
||||
#define HAVE_FCNTL_H 1
|
||||
@ -41,6 +42,7 @@
|
||||
#define HAVE_SYS_UTIME_H 1
|
||||
#define HAVE_SYS_TYPES_H 1
|
||||
|
||||
#undef HAVE_STDINT_H
|
||||
#undef HAVE_STRINGS_H
|
||||
|
||||
|
||||
@ -103,7 +105,7 @@
|
||||
# undef HAVE_SYS_TIME_H
|
||||
# undef HAVE_SYS_TYPES_H
|
||||
# undef HAVE_SYS_UTIME_H
|
||||
#elif (ACC_CC_PUREC && ACC_OS_TOS)
|
||||
#elif ((ACC_CC_PUREC || ACC_CC_TURBOC) && ACC_OS_TOS)
|
||||
# undef HAVE_CONIO_H
|
||||
# undef HAVE_DOS_H
|
||||
# undef HAVE_FCNTL_H
|
||||
@ -142,12 +144,16 @@
|
||||
// Checks for <stdint.h>
|
||||
**************************************************************************/
|
||||
|
||||
#if (ACC_CC_DMC) && defined(__DMC_VERSION_STRING__)
|
||||
# define HAVE_STDINT_H 1
|
||||
#elif defined(__GLIBC__) && defined(__GLIBC_MINOR__)
|
||||
#if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
|
||||
# if (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1))
|
||||
# define HAVE_STDINT_H 1
|
||||
# endif
|
||||
#elif defined(__dietlibc__)
|
||||
# undef HAVE_STDINT_H /* incomplete */
|
||||
#elif (ACC_CC_BORLANDC) && (__BORLANDC__ >= 0x560)
|
||||
# define HAVE_STDINT_H 1
|
||||
#elif (ACC_CC_DMC) && (__DMC__ >= 0x825)
|
||||
# define HAVE_STDINT_H 1
|
||||
#endif
|
||||
|
||||
#if HAVE_STDINT_H
|
||||
@ -159,9 +165,6 @@
|
||||
// Checks for typedefs and structures
|
||||
**************************************************************************/
|
||||
|
||||
/* FIXME - types ??? */
|
||||
#define HAVE_MODE_T 1
|
||||
|
||||
#define SIZEOF_SHORT (__ACC_SHORT_BIT / 8)
|
||||
#define SIZEOF_INT (__ACC_INT_BIT / 8)
|
||||
#define SIZEOF_LONG (__ACC_LONG_BIT / 8)
|
||||
@ -300,7 +303,7 @@
|
||||
# undef HAVE_STRFTIME
|
||||
# undef HAVE_UTIME
|
||||
# undef HAVE_VSNPRINTF
|
||||
#elif (ACC_CC_PUREC && ACC_OS_TOS)
|
||||
#elif ((ACC_CC_PUREC || ACC_CC_TURBOC) && ACC_OS_TOS)
|
||||
# undef HAVE_ACCESS
|
||||
# undef HAVE_CHMOD
|
||||
# undef HAVE_CHOWN
|
||||
@ -313,7 +316,7 @@
|
||||
# undef HAVE_UMASK
|
||||
# undef HAVE_UTIME
|
||||
# undef HAVE_VSNPRINTF
|
||||
#elif (ACC_CC_TURBOC && ACC_OS_DOS16)
|
||||
#elif (ACC_CC_TURBOC && (ACC_OS_DOS16 || ACC_OS_WIN16))
|
||||
# undef HAVE_SNPRINTF
|
||||
# undef HAVE_VSNPRINTF
|
||||
# if (__TURBOC__ < 0x0295)
|
||||
|
||||
@ -32,6 +32,11 @@
|
||||
// fix incorrect and missing stuff
|
||||
************************************************************************/
|
||||
|
||||
#if defined(__CYGWIN32__) && !defined(__CYGWIN__)
|
||||
# define __CYGWIN__ __CYGWIN32__
|
||||
#endif
|
||||
|
||||
|
||||
/* Microsoft C does not correctly define ptrdiff_t for
|
||||
* the 16-bit huge memory model.
|
||||
*/
|
||||
@ -69,7 +74,7 @@
|
||||
#endif
|
||||
|
||||
|
||||
#if defined(__TOS__) && defined(__PUREC__)
|
||||
#if defined(__TOS__) && (defined(__PUREC__) || defined(__TURBOC__))
|
||||
# define ACC_BROKEN_SIZEOF 1
|
||||
#endif
|
||||
|
||||
|
||||
@ -30,22 +30,22 @@
|
||||
#if (UINT_MAX != 0xffffL)
|
||||
# error "this should not happen"
|
||||
#endif
|
||||
#if defined(__TINY__) || defined(M_I86TM)
|
||||
#if defined(__TINY__) || defined(M_I86TM) || defined(_M_I86TM)
|
||||
# define ACC_MM_TINY 1
|
||||
# define ACC_INFO_MM "tiny"
|
||||
#elif defined(__SMALL__) || defined(M_I86SM) || defined(SMALL_MODEL)
|
||||
# define ACC_MM_SMALL 1
|
||||
# define ACC_INFO_MM "small"
|
||||
#elif defined(__MEDIUM__) || defined(M_I86MM)
|
||||
# define ACC_MM_MEDIUM 1
|
||||
# define ACC_INFO_MM "medium"
|
||||
#elif defined(__COMPACT__) || defined(M_I86CM)
|
||||
# define ACC_MM_COMPACT 1
|
||||
# define ACC_INFO_MM "compact"
|
||||
#elif defined(__HUGE__) || defined(M_I86HM)
|
||||
#elif defined(__HUGE__) || defined(M_I86HM) || defined(_M_I86HM)
|
||||
# define ACC_MM_HUGE 1
|
||||
# define ACC_INFO_MM "huge"
|
||||
#elif defined(__LARGE__) || defined(M_I86LM) || defined(LARGE_MODEL)
|
||||
#elif defined(__SMALL__) || defined(M_I86SM) || defined(_M_I86SM) || defined(SMALL_MODEL)
|
||||
# define ACC_MM_SMALL 1
|
||||
# define ACC_INFO_MM "small"
|
||||
#elif defined(__MEDIUM__) || defined(M_I86MM) || defined(_M_I86MM)
|
||||
# define ACC_MM_MEDIUM 1
|
||||
# define ACC_INFO_MM "medium"
|
||||
#elif defined(__COMPACT__) || defined(M_I86CM) || defined(_M_I86CM)
|
||||
# define ACC_MM_COMPACT 1
|
||||
# define ACC_INFO_MM "compact"
|
||||
#elif defined(__LARGE__) || defined(M_I86LM) || defined(_M_I86LM) || defined(LARGE_MODEL)
|
||||
# define ACC_MM_LARGE 1
|
||||
# define ACC_INFO_MM "large"
|
||||
#else
|
||||
|
||||
@ -36,10 +36,6 @@
|
||||
*/
|
||||
|
||||
|
||||
#if defined(__CYGWIN32__) && !defined(__CYGWIN__)
|
||||
# define __CYGWIN__ __CYGWIN32__
|
||||
#endif
|
||||
|
||||
#if defined(__CYGWIN__) && defined(__GNUC__)
|
||||
# define ACC_OS_CYGWIN 1
|
||||
# define ACC_INFO_OS "cygwin"
|
||||
@ -68,7 +64,7 @@
|
||||
# else
|
||||
# error "check your limits.h header"
|
||||
# endif
|
||||
#elif defined(__DOS__) || defined(__MSDOS__) || defined(MSDOS) || (defined(__PACIFIC__) && defined(DOS))
|
||||
#elif defined(__DOS__) || defined(__MSDOS__) || defined(_MSDOS) || defined(MSDOS) || (defined(__PACIFIC__) && defined(DOS))
|
||||
# if (UINT_MAX == 0xffffffffL)
|
||||
# define ACC_OS_DOS32 1
|
||||
# define ACC_INFO_OS "dos32"
|
||||
@ -158,12 +154,12 @@
|
||||
|
||||
#if (ACC_OS_DOS16 || ACC_OS_OS216 || ACC_OS_WIN16)
|
||||
# if (UINT_MAX != 0xffffL)
|
||||
# error
|
||||
# error "this should not happen"
|
||||
# endif
|
||||
#endif
|
||||
#if (ACC_OS_DOS32 || ACC_OS_OS2 || ACC_OS_WIN32 || ACC_OS_WIN64)
|
||||
# if (UINT_MAX != 0xffffffffL)
|
||||
# error
|
||||
# error "this should not happen"
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user