00001 /*----------------------------------------------------------------------------- 00002 * AnnotatorComm common declarations 00003 * Ionetrics 2006 00004 * John Williams 00005 * AnnotatorCommApi.h 00006 *---------------------------------------------------------------------------*/ 00007 00008 #ifndef ANNOTATORCOMMAPI_H 00009 #define ANNOTATORCOMMAPI_H 00010 00011 //----------------------------------------------------------------------------- 00012 00013 // Tell MSVC to be quiet about its exception mishandling. Don't warn about all 00014 // the ignored throw tags on methods. 00015 #ifdef MSVC 00016 #pragma warning(disable:4290) 00017 #endif 00018 00019 //----------------------------------------------------------------------------- 00020 00021 #ifdef ANNCOMM_EXPORTS 00022 #define ANNCOMM_API __declspec(dllexport) 00023 #else 00024 #define ANNCOMM_API __declspec(dllimport) 00025 #endif 00026 00027 //----------------------------------------------------------------------------- 00028 00032 namespace annotatorcomm 00033 { 00034 00040 void sleep(int milliseconds); 00041 00042 } 00043 00044 //----------------------------------------------------------------------------- 00045 // Setup primitive integral types as follows 00046 // signed 8-bit integer - int8_t 00047 // unsigned 8-bit integer - uint8_t 00048 // signed 16-bit integer - int16_t 00049 // unsigned 16-bit integer - uint16_t 00050 // signed 32-bit integer - int32_t 00051 // unsigned 32-bit integer - uint32_t 00052 // signed 64-bit integer - int64_t 00053 // unsigned 64-bit integer - uint64_t 00054 00055 #ifdef GCC 00056 // GCC already declares these in a header file. 00057 #include <stdint.h> 00058 #endif 00059 00060 #ifdef MSVC 00061 // MSVC needs its internal types redefined. 00062 typedef __int8 int8_t; 00063 typedef unsigned __int8 uint8_t; 00064 typedef __int16 int16_t; 00065 typedef unsigned __int16 uint16_t; 00066 typedef __int32 int32_t; 00067 typedef unsigned __int32 uint32_t; 00068 typedef __int64 int64_t; 00069 typedef unsigned __int64 uint64_t; 00070 #endif 00071 00072 //----------------------------------------------------------------------------- 00073 00074 #endif /* ANNOTATORCOMMAPI_H */