This is an automated email from the ASF dual-hosted git repository.
bmahler pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git
The following commit(s) were added to refs/heads/master by this push:
new 457c2013e Avoid using MSVC-internal `_STRINGIZE`.
457c2013e is described below
commit 457c2013eb319878443e14b02cf2d0f905f3c391
Author: Stephan T. Lavavej <[email protected]>
AuthorDate: Thu Feb 29 15:31:33 2024 -0800
Avoid using MSVC-internal `_STRINGIZE`.
---
3rdparty/stout/include/stout/abort.hpp | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/3rdparty/stout/include/stout/abort.hpp
b/3rdparty/stout/include/stout/abort.hpp
index 19171060a..b33905d77 100644
--- a/3rdparty/stout/include/stout/abort.hpp
+++ b/3rdparty/stout/include/stout/abort.hpp
@@ -28,14 +28,11 @@
#include <stout/attributes.hpp>
-// NOTE: These macros are already defined in Visual Studio (Windows) headers.
-#ifndef __WINDOWS__
-#define __STRINGIZE(x) #x
-#define _STRINGIZE(x) __STRINGIZE(x)
-#endif // __WINDOWS__
+#define STOUT_STRINGIZE_IMPL(x) #x
+#define STOUT_STRINGIZE(x) STOUT_STRINGIZE_IMPL(x)
// Signal safe abort which prints a message.
-#define _ABORT_PREFIX "ABORT: (" __FILE__ ":" _STRINGIZE(__LINE__) "): "
+#define _ABORT_PREFIX "ABORT: (" __FILE__ ":" STOUT_STRINGIZE(__LINE__) "): "
#define ABORT(...) _Abort(_ABORT_PREFIX, __VA_ARGS__)