@@ -127,20 +127,18 @@ limitations under the License.
127127 #endif
128128 #endif
129129
130- #ifndef _GLIBCXX_USE_NOEXCEPT
131- #define _GLIBCXX_USE_NOEXCEPT
132- #endif
133-
134130 // Notice: in Visual Studio (prior to VS2017 version 15.7)
135131 // __cplusplus always defaults to 199711L (aka C++98) !!! (unless
136132 // the extra option /Zc:__cplusplus is added to the command line).
137133 // Otherwise, using the _MSVC_LANG macro returns the proper C++ version.
138134 #if __cplusplus >= 201103L
139135 // C++ 11
140136 #define FINAL final
137+ #define NOEXCEPT noexcept
141138 #include < cstdint>
142139 #else
143140 #define FINAL
141+ #define NOEXCEPT throw ()
144142
145143 #if defined (_MSC_VER)
146144 #if _MSC_VER < 1300
@@ -167,12 +165,15 @@ limitations under the License.
167165 typedef unsigned char uint8_t ;
168166 typedef unsigned short uint16_t ;
169167 typedef unsigned int uint32_t ;
170- typedef signed long int64_t ;
171- typedef unsigned long uint64_t ;
168+
169+ #if !defined(__APPLE__)
170+ typedef signed long int64_t ;
171+ typedef unsigned long uint64_t ;
172+ #endif
172173 #endif
173174
174175
175- #if !defined(_MSC_VER) || _MSC_VER < 1910
176+ #if !defined(nullptr)
176177 #define nullptr NULL
177178 #endif
178179 #endif
@@ -193,11 +194,17 @@ namespace kanzi
193194 typedef uint8_t uint8;
194195 typedef int16_t int16;
195196 typedef int32_t int32;
196- typedef int64_t int64;
197197 typedef uint16_t uint16;
198198 typedef uint32_t uint;
199199 typedef uint32_t uint32;
200- typedef uint64_t uint64;
200+
201+ #if defined(__APPLE__)
202+ typedef signed long int64;
203+ typedef unsigned long uint64;
204+ #else
205+ typedef int64_t int64;
206+ typedef uint64_t uint64;
207+ #endif
201208}
202209
203210 #if defined(__MINGW32__)
0 commit comments