25 #ifndef SHARE_VM_UTILITIES_GLOBALDEFINITIONS_HPP 26 #define SHARE_VM_UTILITIES_GLOBALDEFINITIONS_HPP 27 28 #ifndef __STDC_FORMAT_MACROS 29 #define __STDC_FORMAT_MACROS 30 #endif 31 32 #ifdef TARGET_COMPILER_gcc 33 # include "utilities/globalDefinitions_gcc.hpp" 34 #endif 35 #ifdef TARGET_COMPILER_visCPP 36 # include "utilities/globalDefinitions_visCPP.hpp" 37 #endif 38 #ifdef TARGET_COMPILER_sparcWorks 39 # include "utilities/globalDefinitions_sparcWorks.hpp" 40 #endif 41 #ifdef TARGET_COMPILER_xlc 42 # include "utilities/globalDefinitions_xlc.hpp" 43 #endif 44 45 #ifndef PRAGMA_DIAG_PUSH 46 #define PRAGMA_DIAG_PUSH 47 #endif 48 #ifndef PRAGMA_DIAG_POP 49 #define PRAGMA_DIAG_POP 50 #endif 51 #ifndef PRAGMA_FORMAT_NONLITERAL_IGNORED 52 #define PRAGMA_FORMAT_NONLITERAL_IGNORED 53 #endif 54 #ifndef PRAGMA_FORMAT_IGNORED 55 #define PRAGMA_FORMAT_IGNORED 56 #endif 57 #ifndef PRAGMA_FORMAT_NONLITERAL_IGNORED_INTERNAL 58 #define PRAGMA_FORMAT_NONLITERAL_IGNORED_INTERNAL 59 #endif 60 #ifndef PRAGMA_FORMAT_NONLITERAL_IGNORED_EXTERNAL 61 #define PRAGMA_FORMAT_NONLITERAL_IGNORED_EXTERNAL 62 #endif 63 #ifndef PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC 64 #define PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC | 25 #ifndef SHARE_VM_UTILITIES_GLOBALDEFINITIONS_HPP 26 #define SHARE_VM_UTILITIES_GLOBALDEFINITIONS_HPP 27 28 #ifndef __STDC_FORMAT_MACROS 29 #define __STDC_FORMAT_MACROS 30 #endif 31 32 #ifdef TARGET_COMPILER_gcc 33 # include "utilities/globalDefinitions_gcc.hpp" 34 #endif 35 #ifdef TARGET_COMPILER_visCPP 36 # include "utilities/globalDefinitions_visCPP.hpp" 37 #endif 38 #ifdef TARGET_COMPILER_sparcWorks 39 # include "utilities/globalDefinitions_sparcWorks.hpp" 40 #endif 41 #ifdef TARGET_COMPILER_xlc 42 # include "utilities/globalDefinitions_xlc.hpp" 43 #endif 44 45 // Defaults for macros that might be defined per compiler. 46 #ifndef NOINLINE 47 #define NOINLINE 48 #endif 49 #ifndef ALWAYSINLINE 50 #define ALWAYSINLINE inline 51 #endif 52 53 #ifndef PRAGMA_DIAG_PUSH 54 #define PRAGMA_DIAG_PUSH 55 #endif 56 #ifndef PRAGMA_DIAG_POP 57 #define PRAGMA_DIAG_POP 58 #endif 59 #ifndef PRAGMA_FORMAT_NONLITERAL_IGNORED 60 #define PRAGMA_FORMAT_NONLITERAL_IGNORED 61 #endif 62 #ifndef PRAGMA_FORMAT_IGNORED 63 #define PRAGMA_FORMAT_IGNORED 64 #endif 65 #ifndef PRAGMA_FORMAT_NONLITERAL_IGNORED_INTERNAL 66 #define PRAGMA_FORMAT_NONLITERAL_IGNORED_INTERNAL 67 #endif 68 #ifndef PRAGMA_FORMAT_NONLITERAL_IGNORED_EXTERNAL 69 #define PRAGMA_FORMAT_NONLITERAL_IGNORED_EXTERNAL 70 #endif 71 #ifndef PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC 72 #define PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC |