Codemesh Runtime v3 C++ API Reference  3.9.205
xmog-config-linux.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(__GNUC__)
12 # include "xmog-config-linux-gcc.h"
13 #endif
14 
15 
16 // on Linux, we ask for wide character support
17 #ifndef ACE_HAS_WCHAR
18 # define ACE_HAS_WCHAR
19 #endif
20 
21 
22 // the return type of the function type that is passed to thread spawn factory
23 typedef void * XMOG_THREAD_FUNC_RETURN;
24 // the macro declaring a variable of thread func return type
25 #define XMOG_THREAD_FUNC_RETURN_DECL(x) void * x = NULL;
26 // the macro declaring a thread func return statement
27 #define XMOG_THREAD_FUNC_RETURN_STMT(x) return (void*)(x);
28 
29 
30 // it seems g++ does not understand __cdecl
31 #define XMOG_CALLING_CONVENTION
32 
33 
34 
35 #define XMOG_ATEXIT_MODIFIER
36 
37 
38 // the method we use for tolower
39 #define XMOG_TOLOWER ACE_OS::ace_tolower
40 
41 #define XMOG_OS_CODE "linux"
42 
43 
44 
45 #define XMOG_FILE_SEPARATOR '/'
46 #define XMOG_FILE_SEPARATOR_STR "/"
47 #define XMOG_PATH_SEPARATOR ':'
48 #define XMOG_PATH_SEPARATOR_STR ":"
49 #define LINE_SEP "\n"
50 #define ENV_SEARCH_PATH "LD_LIBRARY_PATH"
51 #define JVM_NAME "libjvm.so"
52 #if defined(__sparc__) || defined(__sparc) || defined(sparc)
53 # define XMOG_JVM_ARCH "sparc"
54 #elif defined(__arm__) || defined(__thumb__)
55 # define XMOG_JVM_ARCH "arm"
56 #elif defined(__i386__) || defined(i386)
57 # define XMOG_JVM_ARCH "i386"
58 #elif defined(__amd64__) || defined(__amd64) || defined(__x86_64__)
59 # define XMOG_JVM_ARCH "amd64"
60 #else
61 # define XMOG_JVM_ARCH ""
62 #endif
63 #if defined(__LP64) || defined(_LP64) || defined(LP64)
64 # define XMOG_NEW_DIFF_TYPE jlong
65 #else
66 # define XMOG_NEW_DIFF_TYPE jint
67 #endif
68 

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