gk_arch.h
Go to the documentation of this file.
1 
10 #ifndef _GK_ARCH_H_
11 #define _GK_ARCH_H_
12 
13 /*************************************************************************
14 * Architecture-specific differences in header files
15 **************************************************************************/
16 #ifdef LINUX
17 #if !defined(__USE_XOPEN)
18 #define __USE_XOPEN
19 #endif
20 #if !defined(_XOPEN_SOURCE)
21 #define _XOPEN_SOURCE 600
22 #endif
23 #if !defined(__USE_XOPEN2K)
24 #define __USE_XOPEN2K
25 #endif
26 #endif
27 
28 
29 #ifdef HAVE_EXECINFO_H
30 #include <execinfo.h>
31 #endif
32 
33 
34 #ifdef __MSC__
35  #include "ms_stdint.h"
36  #include "ms_inttypes.h"
37  #include "ms_stat.h"
38 #else
39 #ifndef SUNOS
40  #include <stdint.h>
41 #endif
42  #include <inttypes.h>
43  #include <sys/types.h>
44  #include <sys/resource.h>
45  #include <sys/time.h>
46 #endif
47 
48 
49 /*************************************************************************
50 * Architecture-specific modifications
51 **************************************************************************/
52 #ifdef WIN32
53 typedef ptrdiff_t ssize_t;
54 #endif
55 
56 
57 #ifdef SUNOS
58 #define PTRDIFF_MAX INT64_MAX
59 #endif
60 
61 #ifdef __MSC__
62 #if(_MSC_VER < 1700)
63 /* MSC does not have rint() function */
64 #define rint(x) ((int)((x)+0.5))
65 #endif
66 /* MSC does not have INFINITY defined */
67 #ifndef INFINITY
68 #define INFINITY FLT_MAX
69 #endif
70 #endif
71 
72 #endif


gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:34:18