00001 #ifndef _CMT_FILE_DEF_H_2007_01_24 00002 #define _CMT_FILE_DEF_H_2007_01_24 00003 00004 #include <stdio.h> 00005 #ifndef _CMT_MONOLITHIC 00006 #ifndef _PSTDINT_H_INCLUDED 00007 # include "pstdint.h" 00008 #endif 00009 #endif 00010 00011 #ifndef _WIN32 00012 # include <sys/types.h> 00013 #endif 00014 00015 #ifdef _CMT_STATIC_LIB 00016 namespace xsens { 00017 #endif 00018 00019 #ifdef _WIN32 00020 typedef __int64 CmtFilePos; 00021 #else 00022 typedef off_t CmtFilePos; 00023 #endif 00024 00025 #ifdef _CMT_STATIC_LIB 00026 } // end of xsens namespace 00027 #endif 00028 00029 // setFilePos defines 00030 #ifdef _WIN32 00031 # define CMT_FILEPOS_BEGIN FILE_BEGIN 00032 # define CMT_FILEPOS_CURRENT FILE_CURRENT 00033 # define CMT_FILEPOS_END FILE_END 00034 #else 00035 # define CMT_FILEPOS_BEGIN SEEK_SET 00036 # define CMT_FILEPOS_CURRENT SEEK_CUR 00037 # define CMT_FILEPOS_END SEEK_END 00038 #endif 00039 00040 #endif