In MSVC you could use push_macro
pragma, GCC supports it for compatibility with Microsoft Windows compilers.
#pragma push_macro("MACRONAME")
#undef MACRONAME
// some actions
#pragma pop_macro("MACRONAME")
More Related Contents:
- Visual C++ equivalent of GCC’s __attribute__ ((__packed__))
- MSVC++ variadic macro expansion
- Difference in performance between MSVC and GCC for highly optimized matrix multplication code
- Inherit interfaces which share a method name
- Linking to MSVC DLL from MinGW
- GCC, stringification, and inline GLSL?
- How to test if preprocessor symbol is #define’d but has no value?
- Layout of compiled objects
- How can I see the output of the Visual C++ preprocessor? [duplicate]
- Expand macro inside string literal
- Measuring exception handling overhead in C++
- How do I run the preprocessor on local headers only?
- How exactly does __attribute__((constructor)) work?
- Why does integer overflow on x86 with GCC cause an infinite loop?
- Will new return NULL in any case?
- Convert CString to const char*
- GCC STL bound checking
- Why does the C preprocessor interpret the word “linux” as the constant “1”?
- Is the backslash acceptable in C and C++ #include directives?
- GCC C++ pow accuracy
- Double delete in initializer_list vs 2013
- How do YOU reduce compile time, and linking time for Visual C++ projects (native C++)?
- Forcing or preventing use of a particular minor version of libstdc++
- Visual Studio debugger error: Unable to start program Specified file cannot be found
- How can adding code to a loop make it faster?
- how to specify vc11 lambda calling convention
- C preprocessor macro specialisation based on an argument
- Access violation on static initialization
- Why are designated initializers not implemented in g++
- generates same number in Linux, but not in Windows