8 #if !defined(GLOBUS_COMMON_INCLUDE_H)
9 #define GLOBUS_COMMON_INCLUDE_H 1
13 #if defined(_WIN32) && !defined(__CYGWIN__)
19 #define GlobusFuncName(func) static const char * _globus_func_name \
20 __attribute__((__unused__)) = #func
22 #define GlobusFuncName(func) static const char * _globus_func_name = #func
25 extern const char * _globus_func_name;
27 #define _GCSL(s) globus_common_i18n_get_string(GLOBUS_COMMON_MODULE,\
38 #include <sys/types.h>
43 #include <sys/param.h>
48 # include <winsock2.h>
51 # include <sys/timeb.h>
57 # include <netinet/in.h>
58 # include <sys/socket.h>
88 void globus_dump_stack();
89 #define GLOBUS_DUMP_STACK() globus_dump_stack()
91 #define GLOBUS_DUMP_STACK()
94 #if defined(BUILD_DEBUG)
95 # define globus_assert(assertion) \
99 fprintf(stderr, "Assertion " #assertion \
100 " failed in file %s at line %d\n", \
101 __FILE__, __LINE__); \
102 GLOBUS_DUMP_STACK(); \
107 # define globus_assert_string(assertion, string) \
111 fprintf(stderr, "Assertion " #assertion \
112 " failed in file %s at line %d: %s", \
113 __FILE__, __LINE__, string); \
114 GLOBUS_DUMP_STACK(); \
119 # define globus_assert(assertion)
120 # define globus_assert_string(assertion, string)
123 #define GLOBUS_MAX(V1,V2) (((V1) > (V2)) ? (V1) : (V2))
124 #define GLOBUS_MIN(V1,V2) (((V1) < (V2)) ? (V1) : (V2))
126 #ifndef EXTERN_C_BEGIN
128 #define EXTERN_C_BEGIN extern "C" {
129 #define EXTERN_C_END }
131 #define EXTERN_C_BEGIN
139 #define EWOULDBLOCK EAGAIN
142 #define ETIMEDOUT WSAETIMEDOUT
145 #define EINPROGRESS WSAEINPROGRESS
149 #include <inttypes.h>
152 #if defined(_WIN32) && !defined(__USE_MINGW_ANSI_STDIO)
153 # define vsnprintf _vsnprintf
156 #ifndef MAXHOSTNAMELEN
157 #define MAXHOSTNAMELEN 64
Globus Platform Configuration.