VR-Vantage 3.0.3 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
platform.h
Go to the documentation of this file.
1 /* © 1998 JRM Technologies, Inc.*/
2 #ifndef PLATFORM_H_
3 #define PLATFORM_H_
4 
5 
6 #include "JRMlibraryDLLstub.h"
7 #include <time.h>
8 
9 #ifndef LINUX
10 #include <SYS\STAT.H>
11 #include <direct.h>
12 #ifdef WIN32
13 #ifndef STRICT
14 #define STRICT // for windows.h
15 #endif
16 #include <windows.h>
17 #endif // WIN32
18 #else // LINUX
19 #include <unistd.h>
20 #include <sys/stat.h>
21 #include <unistd.h>
22 #define _MAX_PATH NAME_MAX
23 #define _access access
24 #define __stat64 stat64
25 #define _getcwd getcwd
26 #define _chdir chdir
27 #define _stat64 stat64
28 #define _ctime64 ctime
29 
30 /* includes for Linux version of QueryPerformanceCounter timer */
31 #include <stdint.h>
32 #include <stdbool.h>
33 
34 #endif // LINUX
35 
36 #ifdef __cplusplus
37 extern "C"
38 {
39 #endif
40 
41  JRMLIBRARY_API int MakeDataWritable(char* dataDirectory);
42  JRMLIBRARY_API char *getFileModifiedTime(const char *fileName);
43 
44 #ifndef WIN32
45 typedef struct //use same syntax in linux as win32
46 {
49 
51  JRMLIBRARY_API bool QueryPerformanceCounter(LARGE_INTEGER *performance_count);
52 #endif
53 
54 #ifdef WIN32
55  JRMLIBRARY_API void LoadDynamicLibrary(char *libraryName, HMODULE *tryLib);
56  JRMLIBRARY_API void UnloadDynamicLibrary(HMODULE *tryLib);
57 #endif // WIN32
58 
59 #ifdef __cplusplus
60 }
61 #endif
62 
63 #endif


Copyright © 2005-2023 MAK Technologies. All Rights Reserved (www.mak.com)