VTK
dox/Rendering/vtkCocoaMacOSXSDKCompatibility.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003 Program:   Visualization Toolkit
00004 Module:    vtkCocoaMacOSXSDKCompatibility.h
00005 
00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007 All rights reserved.
00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010 This software is distributed WITHOUT ANY WARRANTY; without even
00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012 PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00025 #ifdef __OBJC__
00026 
00027   #import <Foundation/Foundation.h>
00028 
00029   #ifndef NSINTEGER_DEFINED
00030     #ifdef NS_BUILD_32_LIKE_64
00031       typedef long NSInteger;
00032       typedef unsigned long NSUInteger;
00033     #else
00034       typedef int NSInteger;
00035       typedef unsigned int NSUInteger;
00036     #endif
00037     #define NSIntegerMax    LONG_MAX
00038     #define NSIntegerMin    LONG_MIN
00039     #define NSUIntegerMax   ULONG_MAX
00040     #define NSINTEGER_DEFINED 1
00041   #endif
00042 
00043 #endif
00044 
00045 #ifndef CGFLOAT_DEFINED
00046   typedef float CGFloat;
00047   #define CGFLOAT_MIN FLT_MIN
00048   #define CGFLOAT_MAX FLT_MAX
00049   #define CGFLOAT_IS_DOUBLE 0
00050   #define CGFLOAT_DEFINED 1
00051 #endif