Commit 8d472cd5 by Robert Ou

Rename new flag to ABC_USE_STDINT_H

parent 40c8a398
...@@ -96,7 +96,7 @@ ABC_NAMESPACE_HEADER_START ...@@ -96,7 +96,7 @@ ABC_NAMESPACE_HEADER_START
/// BASIC TYPES /// /// BASIC TYPES ///
//////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////
#ifdef ABC_HAVE_STDINT_H #ifdef ABC_USE_STDINT_H
// If there is stdint.h, assume this is a reasonably-modern platform that // If there is stdint.h, assume this is a reasonably-modern platform that
// would also have stddef.h and limits.h // would also have stddef.h and limits.h
#include <limits.h> #include <limits.h>
...@@ -146,7 +146,7 @@ ABC_NAMESPACE_HEADER_START ...@@ -146,7 +146,7 @@ ABC_NAMESPACE_HEADER_START
*/ */
#if defined(__ccdoc__) #if defined(__ccdoc__)
typedef platform_dependent_type ABC_PTRDIFF_T; typedef platform_dependent_type ABC_PTRDIFF_T;
#elif defined(ABC_HAVE_STDINT_H) #elif defined(ABC_USE_STDINT_H)
typedef ptrdiff_t ABC_PTRDIFF_T; typedef ptrdiff_t ABC_PTRDIFF_T;
#elif defined(LIN64) #elif defined(LIN64)
typedef long ABC_PTRDIFF_T; typedef long ABC_PTRDIFF_T;
...@@ -165,7 +165,7 @@ typedef int ABC_PTRDIFF_T; ...@@ -165,7 +165,7 @@ typedef int ABC_PTRDIFF_T;
*/ */
#if defined(__ccdoc__) #if defined(__ccdoc__)
typedef platform_dependent_type ABC_PTRUINT_T; typedef platform_dependent_type ABC_PTRUINT_T;
#elif defined(ABC_HAVE_STDINT_H) #elif defined(ABC_USE_STDINT_H)
typedef uintptr_t ABC_PTRUINT_T; typedef uintptr_t ABC_PTRUINT_T;
#elif defined(LIN64) #elif defined(LIN64)
typedef unsigned long ABC_PTRUINT_T; typedef unsigned long ABC_PTRUINT_T;
...@@ -184,7 +184,7 @@ typedef unsigned int ABC_PTRUINT_T; ...@@ -184,7 +184,7 @@ typedef unsigned int ABC_PTRUINT_T;
*/ */
#if defined(__ccdoc__) #if defined(__ccdoc__)
typedef platform_dependent_type ABC_PTRINT_T; typedef platform_dependent_type ABC_PTRINT_T;
#elif defined(ABC_HAVE_STDINT_H) #elif defined(ABC_USE_STDINT_H)
typedef intptr_t ABC_PTRINT_T; typedef intptr_t ABC_PTRINT_T;
#elif defined(LIN64) #elif defined(LIN64)
typedef long ABC_PTRINT_T; typedef long ABC_PTRINT_T;
...@@ -201,7 +201,7 @@ typedef int ABC_PTRINT_T; ...@@ -201,7 +201,7 @@ typedef int ABC_PTRINT_T;
*/ */
#if defined(__ccdoc__) #if defined(__ccdoc__)
typedef platform_dependent_type ABC_INT64_T; typedef platform_dependent_type ABC_INT64_T;
#elif defined(ABC_HAVE_STDINT_H) #elif defined(ABC_USE_STDINT_H)
typedef int64_t ABC_INT64_T; typedef int64_t ABC_INT64_T;
#elif defined(LIN64) #elif defined(LIN64)
typedef long ABC_INT64_T; typedef long ABC_INT64_T;
...@@ -218,7 +218,7 @@ typedef signed __int64 ABC_INT64_T; ...@@ -218,7 +218,7 @@ typedef signed __int64 ABC_INT64_T;
*/ */
#if defined(__ccdoc__) #if defined(__ccdoc__)
typedef platform_dependent_type ABC_UINT64_T; typedef platform_dependent_type ABC_UINT64_T;
#elif defined(ABC_HAVE_STDINT_H) #elif defined(ABC_USE_STDINT_H)
typedef uint64_t ABC_UINT64_T; typedef uint64_t ABC_UINT64_T;
#elif defined(LIN64) #elif defined(LIN64)
typedef unsigned long ABC_UINT64_T; typedef unsigned long ABC_UINT64_T;
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <assert.h> #include <assert.h>
#include "abc_global.h" #include <misc/util/abc_global.h>
#if defined(LIN) || defined(LIN64) #if defined(LIN) || defined(LIN64)
#include <unistd.h> #include <unistd.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment