Changeset 69686 in vbox
- Timestamp:
- Nov 14, 2017 1:29:33 PM (7 years ago)
- Location:
- trunk/include
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/Makefile.kmk
r69107 r69686 20 20 include $(KBUILD_PATH)/subheader.kmk 21 21 22 LIBRARIES += SyntaxVBoxIncludeR3 SyntaxVBoxIncludeR0 SyntaxVBoxIncludeRC22 LIBRARIES += SyntaxVBoxIncludeR3 SyntaxVBoxIncludeR0 23 23 24 24 # Omit headers that are using C++ features and upsets gcc. … … 106 106 VBox/VBoxNetCfg-win.h \ 107 107 VBox/usblib-win.h \ 108 VBox/com/microatl.h \ 108 109 ,$(VBOX_HDRS_GCC_ONLY)) \ 109 110 \ … … 152 153 SyntaxVBoxIncludeR3_TEMPLATE = VBOXMAINEXE 153 154 SyntaxVBoxIncludeR3_DEFS = VBOX_WITH_HGCM 154 SyntaxVBoxIncludeR3_CDEFS = VBOX_WITHOUT_UNNAMED_UNIONS155 SyntaxVBoxIncludeR3_CDEFS = IPRT_WITHOUT_NAMED_UNIONS_AND_STRUCTS 155 156 SyntaxVBoxIncludeR3_SOURCES := \ 156 157 $(addprefix $(PATH_OBJ)/include/c/, $(addsuffix .c, $(basename $(VBOX_HDRS_ALL_R3_C)))) \ … … 161 162 SyntaxVBoxIncludeR0_TEMPLATE = VBoxR0 162 163 SyntaxVBoxIncludeR0_DEFS = VBOX_WITH_HGCM 163 SyntaxVBoxIncludeR0_CDEFS = VBOX_WITHOUT_UNNAMED_UNIONS164 SyntaxVBoxIncludeR0_CDEFS = IPRT_WITHOUT_NAMED_UNIONS_AND_STRUCTS 164 165 SyntaxVBoxIncludeR0_SOURCES := \ 165 166 $(addprefix $(PATH_OBJ)/include/c/, $(addsuffix .c, $(basename $(VBOX_HDRS_ALL_R0_C)))) \ … … 167 168 SyntaxVBoxIncludeR0_CLEAN = $(SyntaxVBoxIncludeR0_SOURCES) 168 169 169 SyntaxVBoxIncludeRC_TEMPLATE = VBoxRc 170 SyntaxVBoxIncludeRC_DEFS = VBOX_WITH_HGCM 171 SyntaxVBoxIncludeRC_CDEFS = VBOX_WITHOUT_UNNAMED_UNIONS 172 SyntaxVBoxIncludeRC_SOURCES := \ 173 $(addprefix $(PATH_OBJ)/include/c/, $(addsuffix .c, $(basename $(VBOX_HDRS_ALL_RC_C)))) \ 174 $(addprefix $(PATH_OBJ)/include/cpp/,$(addsuffix .cpp,$(basename $(VBOX_HDRS_ALL_RC)))) 175 SyntaxVBoxIncludeRC_CLEAN = $(SyntaxVBoxIncludeRC_SOURCES) 176 170 ifdef VBOX_WITH_RAW_MODE 171 LIBRARIES += SyntaxVBoxIncludeRC 172 SyntaxVBoxIncludeRC_TEMPLATE = VBoxRc 173 SyntaxVBoxIncludeRC_DEFS = VBOX_WITH_HGCM 174 SyntaxVBoxIncludeRC_CDEFS = IPRT_WITHOUT_NAMED_UNIONS_AND_STRUCTS 175 SyntaxVBoxIncludeRC_SOURCES := \ 176 $(addprefix $(PATH_OBJ)/include/c/, $(addsuffix .c, $(basename $(VBOX_HDRS_ALL_RC_C)))) \ 177 $(addprefix $(PATH_OBJ)/include/cpp/,$(addsuffix .cpp,$(basename $(VBOX_HDRS_ALL_RC)))) 178 SyntaxVBoxIncludeRC_CLEAN = $(SyntaxVBoxIncludeRC_SOURCES) 179 endif 177 180 178 181 -
trunk/include/VBox/Graphics/VBoxUhgsmi.h
r69107 r69686 43 43 uint32_t fCommand : 1; 44 44 uint32_t Reserved : 31; 45 } ;45 } RT_STRUCT_NM(s); 46 46 uint32_t Value; 47 } ;47 } RT_UNION_NM(u); 48 48 } VBOXUHGSMI_BUFFER_TYPE_FLAGS; 49 49 … … 60 60 uint32_t bLockEntire : 1; 61 61 uint32_t Reserved : 27; 62 } ;62 } RT_STRUCT_NM(s); 63 63 uint32_t Value; 64 } ;64 } RT_UNION_NM(u); 65 65 } VBOXUHGSMI_BUFFER_LOCK_FLAGS; 66 66 … … 76 76 uint32_t bEntireBuffer : 1; 77 77 uint32_t Reserved : 28; 78 } ;78 } RT_STRUCT_NM(s); 79 79 uint32_t Value; 80 } ;80 } RT_UNION_NM(u); 81 81 } VBOXUHGSMI_BUFFER_SUBMIT_FLAGS, *PVBOXUHGSMI_BUFFER_SUBMIT_FLAGS; 82 82 -
trunk/include/VBox/Graphics/VBoxVideoHost3D.h
r69107 r69686 124 124 void *pvVRamBase; 125 125 uint64_t uAlignment; 126 } ;126 } RT_UNION_NM(u); 127 127 uint64_t cbVRam; 128 128 PPDMLED pLed; -
trunk/include/VBox/vmm/cpum.h
r69408 r69686 1210 1210 /** @} */ 1211 1211 1212 #ifndef VBOX_WITHOUT_UNNAMED_UNIONS1212 #ifndef IPRT_WITHOUT_NAMED_UNIONS_AND_STRUCTS 1213 1213 1214 1214 /** … … 1453 1453 return CPUMIsGuestInSvmNestedHwVirtMode(pCtx) || CPUMIsGuestInVmxNestedHwVirtMode(pCtx); 1454 1454 } 1455 #endif /* VBOX_WITHOUT_UNNAMED_UNIONS */1455 #endif /* IPRT_WITHOUT_NAMED_UNIONS_AND_STRUCTS */ 1456 1456 1457 1457 /** @} */ -
trunk/include/VBox/vmm/cpumctx.h
r69107 r69686 135 135 # define CPUM_UNION_NM(a_Nm) a_Nm 136 136 # define CPUM_STRUCT_NM(a_Nm) a_Nm 137 #elif defined( VBOX_WITHOUT_UNNAMED_UNIONS)137 #elif defined(IPRT_WITHOUT_NAMED_UNIONS_AND_STRUCTS) 138 138 # define CPUM_UNION_NM(a_Nm) a_Nm 139 139 # define CPUM_STRUCT_NM(a_Nm) a_Nm -
trunk/include/VBox/vmm/pdmaudioifs.h
r68758 r69686 661 661 PDMAUDMIXBUFVOL Volume; 662 662 } From; 663 } ;663 } RT_UNION_NM(u); 664 664 } PDMAUDMIXBUFCONVOPTS; 665 665 /** Pointer to conversion parameters for the audio mixer. */ … … 918 918 PDMAUDIOSTREAMIN In; 919 919 PDMAUDIOSTREAMOUT Out; 920 } ;920 } RT_UNION_NM(u); 921 921 /** Data to backend-specific stream data. 922 922 * This data block will be casted by the backend to access its backend-dependent data. … … 926 926 /** Size (in bytes) of the backend-specific stream data. */ 927 927 size_t cbBackend; 928 } PDMAUDIOSTREAM , *PPDMAUDIOSTREAM;928 } PDMAUDIOSTREAM; 929 929 930 930 /** Pointer to a audio connector interface. */ … … 1037 1037 PDMAUDIODEVICECBTYPE enmType; 1038 1038 } Device; 1039 } ;1039 } RT_UNION_NM(u); 1040 1040 /** Pointer to context data. Optional. */ 1041 1041 void *pvCtx; … … 1241 1241 DECLR3CALLBACKMEMBER(int, pfnRegisterCallbacks, (PPDMIAUDIOCONNECTOR pInterface, PPDMAUDIOCBRECORD paCallbacks, size_t cCallbacks)); 1242 1242 1243 } PDMIAUDIOCONNECTOR , *PPDMIAUDIOCONNECTOR;1243 } PDMIAUDIOCONNECTOR; 1244 1244 1245 1245 /** PDMIAUDIOCONNECTOR interface ID. */ … … 1471 1471 DECLR3CALLBACKMEMBER(void, pfnStreamCaptureEnd, (PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream)); 1472 1472 1473 } PDMIHOSTAUDIO , *PPDMIHOSTAUDIO;1473 } PDMIHOSTAUDIO; 1474 1474 1475 1475 /** PDMIHOSTAUDIO interface ID. */ -
trunk/include/iprt/bldprog-strtab-template.cpp.h
r69105 r69686 157 157 } BLDPROGSTRTAB; 158 158 typedef BLDPROGSTRTAB *PBLDPROGSTRTAB; 159 160 #if RT_CLANG_PREREQ(4, 0) 161 # pragma GCC diagnostic push 162 # pragma GCC diagnostic ignored "-Wunused-function" 163 #endif 159 164 160 165 … … 900 905 #else 901 906 else 902 fprintf(pOut, "\\x%02 ", (unsigned)uch);907 fprintf(pOut, "\\x%02x", (unsigned)uch); 903 908 NOREF(pThis); 904 909 #endif … … 1034 1039 } 1035 1040 1041 #if RT_CLANG_PREREQ(4, 0) 1042 # pragma GCC diagnostic pop 1043 #endif 1044 1036 1045 #endif /* __cplusplus && IN_RING3 */ 1037 1046 1047 -
trunk/include/iprt/cdefs.h
r69105 r69686 2394 2394 #endif 2395 2395 2396 /** @def RT_UNION_NM 2397 * For compilers (like DTrace) that does not grok nameless unions, we have a 2398 * little hack to make them palatable. 2399 */ 2400 /** @def RT_STRUCT_NM 2401 * For compilers (like DTrace) that does not grok nameless structs (it is 2402 * non-standard C++), we have a little hack to make them palatable. 2403 */ 2404 #ifdef IPRT_WITHOUT_NAMED_UNIONS_AND_STRUCTS 2405 # define RT_UNION_NM(a_Nm) a_Nm 2406 # define RT_STRUCT_NM(a_Nm) a_Nm 2407 #else 2408 # define RT_UNION_NM(a_Nm) 2409 # define RT_STRUCT_NM(a_Nm) 2410 #endif 2411 2396 2412 /** 2397 2413 * Checks if the value is a power of two. -
trunk/include/iprt/nocrt/math.h
r69475 r69686 57 57 #define __GNUC_PREREQ__(ma, mi) 0 58 58 #endif 59 #undef __pure2 /* darwin: avoid conflict with system headers when doing syntax checking of the headers */ 59 60 #define __pure2 60 61
Note:
See TracChangeset
for help on using the changeset viewer.