From: Paul Cornett Date: Sat, 10 Mar 2007 03:41:37 +0000 (+0000) Subject: sizeof(char) is 1. By definition. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/be33a1c72620aad7a221896b24b7f75fe79dbdc5 sizeof(char) is 1. By definition. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44706 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/configure.in b/configure.in index 8ecd5207bf..e8cb56a210 100644 --- a/configure.in +++ b/configure.in @@ -1870,7 +1870,6 @@ AC_C_INLINE dnl check the sizes of integral types (give some reasonable default values for dnl cross-compiling) dnl defines the size of certain types of variables in SIZEOF_ -AC_CHECK_SIZEOF(char, 1) AC_CHECK_SIZEOF(short, 2) AC_CHECK_SIZEOF(void *, 4) AC_CHECK_SIZEOF(int, 4) diff --git a/include/wx/defs.h b/include/wx/defs.h index ca07009539..e9ffe12880 100644 --- a/include/wx/defs.h +++ b/include/wx/defs.h @@ -667,9 +667,6 @@ enum { wxDefaultCoord = -1 }; /* practice) */ /* 8bit */ -#ifndef SIZEOF_CHAR - #define SIZEOF_CHAR 1 -#endif typedef signed char wxInt8; typedef unsigned char wxUint8; typedef wxUint8 wxByte; diff --git a/include/wx/mac/carbon/config_xcode.h b/include/wx/mac/carbon/config_xcode.h index 0dc2440fbf..372d00a56a 100644 --- a/include/wx/mac/carbon/config_xcode.h +++ b/include/wx/mac/carbon/config_xcode.h @@ -61,7 +61,6 @@ #define HAVE_VSNPRINTF_DECL 1 #define HAVE_USLEEP 1 #define HAVE_WCSLEN 1 -#define SIZEOF_CHAR 1 #define SIZEOF_WCHAR_T 4 #define SIZEOF_SHORT 2 #define SIZEOF_INT 4