|
|
@@ -672,13 +672,6 @@ inline T* InterlockedCompareExchangePointerT(
|
|
|
|
|
|
#endif // __cplusplus
|
|
|
|
|
|
-#ifndef max
|
|
|
-#define max(a,b) (((a) > (b)) ? (a) : (b))
|
|
|
-#endif
|
|
|
-#ifndef min
|
|
|
-#define min(a,b) (((a) < (b)) ? (a) : (b))
|
|
|
-#endif
|
|
|
-
|
|
|
#define StackOverflowMessage "Process is terminated due to StackOverflowException.\n"
|
|
|
|
|
|
#ifdef __ANDROID__
|
|
|
@@ -693,4 +686,13 @@ inline T* InterlockedCompareExchangePointerT(
|
|
|
__android_log_print(ANDROID_LOG_ERROR, CC_AND_TAG, __VA_ARGS__)
|
|
|
#endif
|
|
|
|
|
|
+// do not change the location of the definitions below.
|
|
|
+// these defs should be always at the end
|
|
|
+#ifndef max
|
|
|
+#define max(a,b) (((a) > (b)) ? (a) : (b))
|
|
|
+#endif
|
|
|
+#ifndef min
|
|
|
+#define min(a,b) (((a) < (b)) ? (a) : (b))
|
|
|
+#endif
|
|
|
+
|
|
|
#endif /* _PAL_INTERNAL_H_ */
|