Skip to content

Commit

Permalink
try to fix msvc pragma
Browse files Browse the repository at this point in the history
  • Loading branch information
st-pasha committed Nov 28, 2023
1 parent 5ccf6d0 commit ab1cf6b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions ci/ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ def build_extension(cmd, verbosity=3):
ext = xbuild.Extension()
ext.log = create_logger(verbosity)
ext.log.info("Environment:")
ext.log.info(f" DT_HARNESS = {os.environ.get('DT_HARNESS')}")
ext.log.info(f" DT_RELEASE = {os.environ.get('DT_RELEASE')}")
ext.log.info(f" DT_BUILD_SUFFIX = {os.environ.get('DT_BUILD_SUFFIX')}")
ext.log.info(f" DT_BUILD_NUMBER = {os.environ.get('DT_BUILD_NUMBER')}")
Expand Down
6 changes: 3 additions & 3 deletions src/core/utils/macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,11 @@ struct alignas(CACHELINE_SIZE) cache_aligned {

#if DT_COMPILER_MSVC
#define DISABLE_MSVC_WARNING(N) \
__pragma("warning(push)") \
__pragma(___STRINGIFY(warning(disable : N)))
_Pragma("warning(push)") \
_Pragma(___STRINGIFY(warning(disable : N)))

#define RESTORE_MSVC_WARNING(N) \
__pragma("warning(pop)")
_Pragma("warning(pop)")

#else
#define DISABLE_MSVC_WARNING(N)
Expand Down

0 comments on commit ab1cf6b

Please sign in to comment.