00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057 #ifndef JNI_MD_H
00058 #define JNI_MD_H
00059
00060 #include "prtypes.h"
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102 #if defined(XP_WIN) || defined(_WINDOWS) || defined(WIN32) || defined(_WIN32)
00103 # include <windows.h>
00104 # if defined(_MSC_VER) || defined(__GNUC__)
00105 # if defined(WIN32) || defined(_WIN32)
00106 # define JNI_PUBLIC_API(ResultType) _declspec(dllexport) ResultType __stdcall
00107 # define JNI_PUBLIC_VAR(VarType) VarType
00108 # define JNI_NATIVE_STUB(ResultType) _declspec(dllexport) ResultType
00109 # define JNICALL __stdcall
00110 # else
00111 # if defined(_WINDLL)
00112 # define JNI_PUBLIC_API(ResultType) ResultType __cdecl __export __loadds
00113 # define JNI_PUBLIC_VAR(VarType) VarType
00114 # define JNI_NATIVE_STUB(ResultType) ResultType __cdecl __loadds
00115 # define JNICALL __loadds
00116 # else
00117 # define JNI_PUBLIC_API(ResultType) ResultType __cdecl __export
00118 # define JNI_PUBLIC_VAR(VarType) VarType
00119 # define JNI_NATIVE_STUB(ResultType) ResultType __cdecl __export
00120 # define JNICALL __export
00121 # endif
00122 # endif
00123 # elif defined(__BORLANDC__)
00124 # if defined(WIN32) || defined(_WIN32)
00125 # define JNI_PUBLIC_API(ResultType) __export ResultType
00126 # define JNI_PUBLIC_VAR(VarType) VarType
00127 # define JNI_NATIVE_STUB(ResultType) __export ResultType
00128 # define JNICALL
00129 # else
00130 # define JNI_PUBLIC_API(ResultType) ResultType _cdecl _export _loadds
00131 # define JNI_PUBLIC_VAR(VarType) VarType
00132 # define JNI_NATIVE_STUB(ResultType) ResultType _cdecl _loadds
00133 # define JNICALL _loadds
00134 # endif
00135 # else
00136 # error Unsupported PC development environment.
00137 # endif
00138 # ifndef IS_LITTLE_ENDIAN
00139 # define IS_LITTLE_ENDIAN
00140 # endif
00141
00142 # define JNIEXPORT __declspec(dllexport)
00143 # define JNIIMPORT __declspec(dllimport)
00144
00145
00146 #elif defined(XP_OS2)
00147 # ifdef XP_OS2_VACPP
00148 # define JNI_PUBLIC_API(ResultType) ResultType _System
00149 # define JNI_PUBLIC_VAR(VarType) VarType
00150 # define JNICALL _Optlink
00151 # define JNIEXPORT
00152 # define JNIIMPORT
00153 # elif defined(__declspec)
00154 # define JNI_PUBLIC_API(ResultType) __declspec(dllexport) ResultType
00155 # define JNI_PUBLIC_VAR(VarType) VarType
00156 # define JNI_NATIVE_STUB(ResultType) __declspec(dllexport) ResultType
00157 # define JNICALL
00158 # define JNIEXPORT
00159 # define JNIIMPORT
00160 # else
00161 # define JNI_PUBLIC_API(ResultType) ResultType
00162 # define JNI_PUBLIC_VAR(VarType) VarType
00163 # define JNICALL
00164 # define JNIEXPORT
00165 # define JNIIMPORT
00166 # endif
00167 # ifndef IS_LITTLE_ENDIAN
00168 # define IS_LITTLE_ENDIAN
00169 # endif
00170
00171
00172 #elif macintosh || Macintosh || THINK_C
00173 # if defined(__MWERKS__)
00174 # if !__option(enumsalwaysint)
00175 # error You need to define 'Enums Always Int' for your project.
00176 # endif
00177 # if defined(TARGET_CPU_68K) && !TARGET_RT_MAC_CFM
00178 # if !__option(fourbyteints)
00179 # error You need to define 'Struct Alignment: 68k' for your project.
00180 # endif
00181 # endif
00182 # define JNI_PUBLIC_API(ResultType) __declspec(export) ResultType
00183 # define JNI_PUBLIC_VAR(VarType) JNI_PUBLIC_API(VarType)
00184 # define JNI_NATIVE_STUB(ResultType) JNI_PUBLIC_API(ResultType)
00185 # elif defined(__SC__)
00186 # error What are the Symantec defines? (warren@netscape.com)
00187 # elif macintosh && applec
00188 # error Please upgrade to the latest MPW compiler (SC).
00189 # else
00190 # error Unsupported Mac development environment.
00191 # endif
00192 # define JNICALL
00193
00194 # define JNIEXPORT
00195 # define JNIIMPORT
00196
00197
00198 #else
00199 # define JNI_PUBLIC_API(ResultType) ResultType
00200 # define JNI_PUBLIC_VAR(VarType) VarType
00201 # define JNI_NATIVE_STUB(ResultType) ResultType
00202 # define JNICALL
00203
00204 # define JNIEXPORT
00205 # define JNIIMPORT
00206 #endif
00207
00208 #ifndef FAR
00209 #define FAR
00210 #endif
00211
00212
00213 #include "jri_md.h"
00214
00215 #endif