Adjust PAL_STDCPP_COMPAT to accommodate FreeBSD
authorAdeel <adeelbm@outlook.com>
Fri, 10 May 2019 15:31:27 +0000 (15:31 +0000)
committerAdeel <adeelbm@outlook.com>
Sat, 11 May 2019 05:55:39 +0000 (05:55 +0000)
src/pal/inc/pal.h
src/pal/src/eventprovider/lttngprovider/eventproviderhelpers.cpp

index a2b15f3..5ee217b 100644 (file)
@@ -37,6 +37,7 @@ Abstract:
 #define __PAL_H__
 
 #ifdef PAL_STDCPP_COMPAT
+#include <limits.h>
 #include <stddef.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -256,19 +257,6 @@ typedef char * va_list;
 
 #endif // __GNUC__
 
-#endif // !PAL_STDCPP_COMPAT
-
-/******************* PAL-Specific Entrypoints *****************************/
-
-#define IsDebuggerPresent PAL_IsDebuggerPresent
-
-PALIMPORT
-BOOL
-PALAPI
-PAL_IsDebuggerPresent(VOID);
-
-#define MAXIMUM_SUSPEND_COUNT  MAXCHAR
-
 #define CHAR_BIT      8
 
 #define SCHAR_MIN   (-128)
@@ -287,6 +275,17 @@ PAL_IsDebuggerPresent(VOID);
 #define LONG_MAX      2147483647L
 #define ULONG_MAX     0xffffffffUL
 
+#endif // !PAL_STDCPP_COMPAT
+
+/******************* PAL-Specific Entrypoints *****************************/
+
+#define IsDebuggerPresent PAL_IsDebuggerPresent
+
+PALIMPORT
+BOOL
+PALAPI
+PAL_IsDebuggerPresent(VOID);
+
 #define FLT_MAX 3.402823466e+38F
 #define DBL_MAX 1.7976931348623157e+308
 
index 47e6750..b9d438c 100644 (file)
@@ -1,3 +1,7 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+
 #include "palrt.h"
 #include "pal.h"
 #include "stdlib.h"