Go to the documentation of this file.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 #if !defined(LT_SYSTEM_H)
00032 #define LT_SYSTEM_H 1
00033
00034 #include <stddef.h>
00035 #include <stdlib.h>
00036 #include <sys/types.h>
00037
00038
00039 #if !defined(EXIT_SUCCESS)
00040 # define EXIT_SUCCESS 0
00041 #endif
00042 #if !defined(EXIT_FAILURE)
00043 # define EXIT_FAILURE 1
00044 #endif
00045
00046
00047 #define LT_FILENAME_MAX 2048
00048
00049
00050
00051 #define LT_EOS_CHAR '\0'
00052
00053
00054
00055
00056 #if defined(__cplusplus)
00057 # define LT_BEGIN_C_DECLS extern "C" {
00058 # define LT_END_C_DECLS }
00059 #else
00060 # define LT_BEGIN_C_DECLS
00061 # define LT_END_C_DECLS
00062 #endif
00063
00064
00065
00066 #if defined (__GNUC__) && !defined (__STRICT_ANSI__) && !defined (__cplusplus)
00067 # define LT_STMT_START (void)(
00068 # define LT_STMT_END )
00069 #else
00070 # if (defined (sun) || defined (__sun__))
00071 # define LT_STMT_START if (1)
00072 # define LT_STMT_END else (void)0
00073 # else
00074 # define LT_STMT_START do
00075 # define LT_STMT_END while (0)
00076 # endif
00077 #endif
00078
00079
00080
00081
00082 #if defined(__CYGWIN32__) && !defined(__CYGWIN__)
00083 # define __CYGWIN__ __CYGWIN32__
00084 #endif
00085 #if defined(__CYGWIN__)
00086 # if defined(__WINDOWS__)
00087 # undef __WINDOWS__
00088 # endif
00089 #elif defined(_WIN32)
00090 # define __WINDOWS__ _WIN32
00091 #elif defined(WIN32)
00092 # define __WINDOWS__ WIN32
00093 #endif
00094 #if defined(__CYGWIN__) && defined(__WINDOWS__)
00095 # undef __WINDOWS__
00096 #endif
00097
00098
00099
00100
00101 #if !defined(LT_SCOPE)
00102 # if defined(__WINDOWS__) || defined(__CYGWIN__)
00103 # if defined(DLL_EXPORT)
00104 # define LT_SCOPE extern __declspec(dllexport)
00105 # endif
00106 # if defined(LIBLTDL_DLL_IMPORT)
00107
00108 # define LT_SCOPE extern __declspec(dllimport)
00109 # endif
00110 # endif
00111 # if !defined(LT_SCOPE)
00112 # define LT_SCOPE extern
00113 # endif
00114 #endif
00115
00116 #if defined(__WINDOWS__)
00117
00118
00119 # define LT_DIRSEP_CHAR '\\'
00120 # define LT_PATHSEP_CHAR ';'
00121 #else
00122 # define LT_PATHSEP_CHAR ':'
00123 #endif
00124
00125 #if defined(_MSC_VER)
00126 # define R_OK 4
00127 #endif
00128
00129
00130 #undef LT_READTEXT_MODE
00131 #if defined(__WINDOWS__) || defined(__CYGWIN__)
00132 # define LT_READTEXT_MODE "rt"
00133 #else
00134 # define LT_READTEXT_MODE "r"
00135 #endif
00136
00137
00138
00139
00140 #ifndef LT_STR
00141 # define LT__STR(arg) #arg
00142 # define LT_STR(arg) LT__STR(arg)
00143 #endif
00144
00145 #ifndef LT_CONC
00146 # define LT__CONC(a, b) a##b
00147 # define LT_CONC(a, b) LT__CONC(a, b)
00148 #endif
00149 #ifndef LT_CONC3
00150 # define LT__CONC3(a, b, c) a##b##c
00151 # define LT_CONC3(a, b, c) LT__CONC3(a, b, c)
00152 #endif
00153
00154 #endif