Codemesh Runtime v3 C++ API Reference  3.9.205
xmog-config-windows.h
1 //
2 // Copyright (c) 1999-2020 by Codemesh, Inc.. ALL RIGHTS RESERVED.
3 //
4 
5 
6 #include <string.h>
7 #include <stdlib.h>
8 #include <stddef.h>
9 
10 
11 #if defined(_MSC_VER)
12 # include "xmog-config-windows-msvc.h"
13 #endif
14 
15 #if defined(__BORLANDC__)
16 # include "xmog-config-windows-borland.h"
17 #endif
18 
19 #if defined(__MINGW__) || defined(__MINGW32__)
20 # include "xmog-config-windows-mingw.h"
21 #endif
22 
23 
24 // on Windows, all compilers support wide characters
25 #ifndef ACE_HAS_WCHAR
26 # define ACE_HAS_WCHAR
27 #endif
28 
29 
30 // the return type of the function type that is passed to thread spawn factory
31 typedef /*DWORD*/long XMOG_THREAD_FUNC_RETURN;
32 // the macro declaring a variable of thread func return type
33 #define XMOG_THREAD_FUNC_RETURN_DECL(x) long x = 0;
34 // the macro declaring a thread func return statement
35 #define XMOG_THREAD_FUNC_RETURN_STMT(x) return (long)(x);
36 
37 
38 // it seems all Windows compilers understand __cdecl
39 #define XMOG_CALLING_CONVENTION __cdecl
40 
41 
42 
43 #define XMOG_ATEXIT_MODIFIER __cdecl
44 
45 
46 // the method we use for tolower
47 #define XMOG_TOLOWER ACE_OS::ace_tolower
48 
49 #define XMOG_OS_CODE "windows"
50 
51 #define XMOG_FILE_SEPARATOR '\\'
52 #define XMOG_FILE_SEPARATOR_STR "\\"
53 #define XMOG_PATH_SEPARATOR ';'
54 #define XMOG_PATH_SEPARATOR_STR ";"
55 #define LINE_SEP "\n"
56 #define ENV_SEARCH_PATH "PATH"
57 #define JVM_NAME "jvm.dll"
58 #if defined(__sparc__) || defined(__sparc) || defined(sparc)
59 # define XMOG_JVM_ARCH "sparc"
60 #elif defined(__i386__) || defined(__i386) || defined(i386) || defined(_M_IX86) || defined(_X86_)
61 # define XMOG_JVM_ARCH "i386"
62 #elif defined(_M_X64) || defined(_M_AMD64)
63 # define XMOG_JVM_ARCH "amd64"
64 #elif defined(__ia64__) || defined(__ia64) || defined(ia64) || defined(_M_IA64) || defined(__IA64__) || defined(_IA64)
65 # define XMOG_JVM_ARCH "ia64"
66 #else
67 # define XMOG_JVM_ARCH ""
68 #endif
69 #if defined(__LP64) || defined(_LP64) || defined(LP64)
70 # define XMOG_NEW_DIFF_TYPE jlong
71 #else
72 # define XMOG_NEW_DIFF_TYPE jint
73 #endif
74 

Copyright (c) 1999-2020 by Codemesh, Inc., ALL RIGHTS RESERVED.