Go to the documentation of this file.
397 #if defined(__APPLE__) || defined(__LINUX__)
398 #ifndef FOUNDATION_IMPORT
399 typedef unsigned short unichar;
400 #endif // FOUNDATION_IMPORT
406 #ifndef DOXYGEN_SHOULD_SKIP_THIS
409 #if defined WIN32 && !defined GSLAPI_NO_EXPORTS
411 #ifdef GSLAPI_API_EXPORTS
412 #define SU_EXPORT __declspec(dllexport)
414 #define SU_EXPORT __declspec(dllimport)
415 #endif // GSLAPI_API_EXPORTS
418 #if defined __APPLE__
420 #ifdef GSLAPI_API_EXPORTS
421 #define SU_EXPORT __attribute__ ((visibility("default")))
423 #define SU_EXPORT __attribute__ ((visibility("hidden")))
425 #endif // #if defined __APPLE__
427 #define DEFINE_SU_TYPE(TYPENAME) \
432 #define SU_RESULT SU_EXPORT enum SUResult
434 #endif // DOXYGEN_SHOULD_SKIP_THIS
440 #define SU_INVALID { 0 }
446 #define SUIsInvalid(VARIABLE) (VARIABLE).ptr == 0
451 #define SUSetInvalid(VARIABLE) (VARIABLE).ptr = 0
456 #define SUAreEqual(VARIABLE1, VARIABLE2) ((VARIABLE1).ptr == (VARIABLE2).ptr)
460 #if !defined(__STDC_HOSTED__) || (__STDC_HOSTED__ == 0)
463 typedef __int64 int64_t;
464 typedef __int32 int32_t;
465 typedef __int16 int16_t;
467 #error Unsupported compiler!
471 #endif // #if !defined(__STDC_HOSTED__) || (__STDC_HOSTED__ == 0)
473 #endif // SLAPI_SLAPI_H_