wizard-type.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef _WIZARDSTOOLKIT_WIZARD_TYPE_H
00019 #define _WIZARDSTOOLKIT_WIZARD_TYPE_H
00020
00021 #if defined(__cplusplus) || defined(c_plusplus)
00022 extern "C" {
00023 #endif
00024
00025 typedef enum
00026 {
00027 WizardFalse = 0,
00028 WizardTrue = 1
00029 } WizardBooleanType;
00030
00031 #if defined(WIZARDSTOOLKIT_WINDOWS_SUPPORT) && !defined(__MINGW32__)
00032 # define WizardLLConstant(c) (WizardOffsetType) (c ## i64)
00033 # define WizardULLConstant(c) (WizardSizeType) (c ## ui64)
00034 #else
00035 # define WizardLLConstant(c) (WizardOffsetType) (c ## LL)
00036 # define WizardULLConstant(c) (WizardSizeType) (c ## ULL)
00037 #endif
00038
00039
00040
00041
00042 typedef unsigned int WizardStatusType;
00043 #if !defined(WIZARDSTOOLKIT_WINDOWS_SUPPORT)
00044 #if (WIZARDSTOOLKIT_SIZEOF_UNSIGNED_LONG_LONG == 8)
00045 typedef long long WizardOffsetType;
00046 typedef unsigned long long WizardSizeType;
00047 #define WizardOffsetFormat "lld"
00048 #define WizardSizeFormat "llu"
00049 #else
00050 typedef ssize_t WizardOffsetType;
00051 typedef size_t WizardSizeType;
00052 #define WizardOffsetFormat "lu"
00053 #define WizardSizeFormat "lu"
00054 #endif
00055 #else
00056 typedef __int64 WizardOffsetType;
00057 typedef unsigned __int64 WizardSizeType;
00058 #define WizardOffsetFormat "I64i"
00059 #define WizardSizeFormat "I64u"
00060 #endif
00061
00062 #if defined(macintosh)
00063 #define ExceptionInfo WizardExceptionInfo
00064 #endif
00065
00066 #if defined(__cplusplus) || defined(c_plusplus)
00067 }
00068 #endif
00069
00070 #endif