VTK
vtkCocoaMacOSXSDKCompatibility.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: Visualization Toolkit
4 Module: vtkCocoaMacOSXSDKCompatibility.h
5 
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
25 #ifdef __OBJC__
26 
27  #import <Foundation/Foundation.h>
28 
29  #ifndef NSINTEGER_DEFINED
30  #ifdef NS_BUILD_32_LIKE_64
31  typedef long NSInteger;
32  typedef unsigned long NSUInteger;
33  #else
34  typedef int NSInteger;
35  typedef unsigned int NSUInteger;
36  #endif
37  #define NSIntegerMax LONG_MAX
38  #define NSIntegerMin LONG_MIN
39  #define NSUIntegerMax ULONG_MAX
40  #define NSINTEGER_DEFINED 1
41  #endif
42 
43 #endif
44 
45 #ifndef CGFLOAT_DEFINED
46  typedef float CGFloat;
47  #define CGFLOAT_MIN FLT_MIN
48  #define CGFLOAT_MAX FLT_MAX
49  #define CGFLOAT_IS_DOUBLE 0
50  #define CGFLOAT_DEFINED 1
51 #endif