[llvm-branch-commits] [cfe-branch] r102306 - /cfe/branches/Apple/williamson/lib/Headers/stdint.h
Daniel Dunbar
daniel at zuster.org
Sun Apr 25 05:55:55 PDT 2010
Author: ddunbar
Date: Sun Apr 25 07:55:55 2010
New Revision: 102306
URL: http://llvm.org/viewvc/llvm-project?rev=102306&view=rev
Log:
Headers: Hide intptr_t and uintptr_t definitions behind _INTPTR_T and _UINTPTR_T defines, for increased compatibility with Darwin gcc. - This is a bit of a hack, since platform compatibility issues don't belong here, but I don't think this hurts anyone either.
Modified:
cfe/branches/Apple/williamson/lib/Headers/stdint.h
Modified: cfe/branches/Apple/williamson/lib/Headers/stdint.h
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/williamson/lib/Headers/stdint.h?rev=102306&r1=102305&r2=102306&view=diff
==============================================================================
--- cfe/branches/Apple/williamson/lib/Headers/stdint.h (original)
+++ cfe/branches/Apple/williamson/lib/Headers/stdint.h Sun Apr 25 07:55:55 2010
@@ -218,11 +218,18 @@
#define __intn_t(n) __stdint_join3( int, n, _t)
#define __uintn_t(n) __stdint_join3(uint, n, _t)
+#ifndef _INTPTR_T
#ifndef __intptr_t_defined
typedef __intn_t(__INTPTR_WIDTH__) intptr_t;
#define __intptr_t_defined
+#define _INTPTR_T
#endif
+#endif
+
+#ifndef _UINTPTR_T
typedef __uintn_t(__INTPTR_WIDTH__) uintptr_t;
+#define _UINTPTR_T
+#endif
/* C99 7.18.1.5 Greatest-width integer types.
*/
More information about the llvm-branch-commits
mailing list