mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-26 05:18:46 +00:00
Add '#ifndef _PTRDIFF_T' guard around definition of ptrdiff_t. Fixes <rdar://problem/9210154>.
llvm-svn: 128578
This commit is contained in:
parent
5034159c5f
commit
f49e1dd86d
@ -26,7 +26,10 @@
|
||||
#ifndef __STDDEF_H
|
||||
#define __STDDEF_H
|
||||
|
||||
#ifndef _PTRDIFF_T
|
||||
#define _PTRDIFF_T
|
||||
typedef __typeof__(((int*)0)-((int*)0)) ptrdiff_t;
|
||||
#endif
|
||||
#ifndef _SIZE_T
|
||||
#define _SIZE_T
|
||||
typedef __typeof__(sizeof(int)) size_t;
|
||||
|
Loading…
x
Reference in New Issue
Block a user