summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdeel <adeelbm@outlook.com>2019-05-10 15:31:27 +0000
committerAdeel <adeelbm@outlook.com>2019-05-11 05:55:39 +0000
commit3ca5ca3a2289585f08af29c425f7dbb93621e3f9 (patch)
tree316609a5155a5a3105d50c7713be8cf4c6ea82ec /src
parent67c83438bad8cd8f0ba20b370e4cace746ef57d1 (diff)
downloadcoreclr-3ca5ca3a2289585f08af29c425f7dbb93621e3f9.tar.gz
coreclr-3ca5ca3a2289585f08af29c425f7dbb93621e3f9.tar.bz2
coreclr-3ca5ca3a2289585f08af29c425f7dbb93621e3f9.zip
Adjust PAL_STDCPP_COMPAT to accommodate FreeBSD
Diffstat (limited to 'src')
-rw-r--r--src/pal/inc/pal.h25
-rw-r--r--src/pal/src/eventprovider/lttngprovider/eventproviderhelpers.cpp4
2 files changed, 16 insertions, 13 deletions
diff --git a/src/pal/inc/pal.h b/src/pal/inc/pal.h
index a2b15f3d12..5ee217bf8a 100644
--- a/src/pal/inc/pal.h
+++ b/src/pal/inc/pal.h
@@ -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
diff --git a/src/pal/src/eventprovider/lttngprovider/eventproviderhelpers.cpp b/src/pal/src/eventprovider/lttngprovider/eventproviderhelpers.cpp
index 47e67506f7..b9d438c9a1 100644
--- a/src/pal/src/eventprovider/lttngprovider/eventproviderhelpers.cpp
+++ b/src/pal/src/eventprovider/lttngprovider/eventproviderhelpers.cpp
@@ -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"