Changeset 3638 in vbox
- Timestamp:
- Jul 16, 2007 1:13:59 PM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 22909
- Location:
- trunk/include/VBox
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/VBoxGuest.h
r3633 r3638 39 39 typedef uint32_t vmmDevHypPhys; 40 40 41 #if defined( __LINUX__)41 #if defined(RT_OS_LINUX) 42 42 /** The support device name. */ 43 43 # define VBOXGUEST_DEVICE_NAME "/dev/vboxadd" 44 44 45 #elif defined( __OS2__)45 #elif defined(RT_OS_OS2) 46 46 /** The support device name. */ 47 47 # define VBOXGUEST_DEVICE_NAME "\\Dev\\VBoxGst$" 48 48 49 #elif defined( __WIN__)49 #elif defined(RT_OS_WINDOWS) 50 50 /** The support service name. */ 51 51 # define VBOXGUEST_SERVICE_NAME "VBoxGuest" … … 958 958 * @{ 959 959 */ 960 #ifdef __AMD64__960 #ifdef RT_OS_AMD64 961 961 # define VBOXGUEST_IOCTL_FLAG 128 962 #elif defined( __X86__)962 #elif defined(RT_OS_X86) 963 963 # define VBOXGUEST_IOCTL_FLAG 0 964 964 #else … … 966 966 #endif 967 967 968 #if defined( __WIN__)968 #if defined(RT_OS_WINDOWS) 969 969 # define IOCTL_CODE(DeviceType, Function, Method, Access, DataSize_ignored) \ 970 970 ( ((DeviceType) << 16) | ((Access) << 14) | ((Function) << 2) | (Method)) 971 971 972 #elif defined( __OS2__)972 #elif defined(RT_OS_OS2) 973 973 # define VBOXGUEST_IOCTL_CATEGORY 0xc2 974 974 # define VBOXGUEST_IOCTL_CODE(Function, Size) ((unsigned char)(Function)) … … 976 976 # define VBOXGUEST_IOCTL_CODE_FAST(Function) ((unsigned char)(Function)) 977 977 978 #elif defined( __LINUX__)978 #elif defined(RT_OS_LINUX) 979 979 # define IOCTL_CODE(DeviceType, Function, Method_ignored, Access_ignored, DataSize) \ 980 980 ( (3 << 30) | ((DeviceType) << 8) | (Function) | ((DataSize) << 16) ) … … 1243 1243 1244 1244 1245 #ifdef __OS2__1245 #ifdef RT_OS_OS2 1246 1246 1247 1247 /** … … 1311 1311 #define VBOXGUEST_IOCTL_OS2_IDC_DISCONNECT VBOXGUEST_IOCTL_CODE(48, sizeof(uint32_t)) 1312 1312 1313 #endif /* __OS2__*/1313 #endif /* RT_OS_OS2 */ 1314 1314 1315 1315 /** @} */ -
trunk/include/VBox/asmdefs.mac
r2981 r3638 163 163 164 164 %macro COM_S_PRINT 1+ 165 %ifdef __AMD64__165 %ifdef RT_OS_AMD64 166 166 COM64_S_PRINT %1 167 167 %else … … 252 252 253 253 %macro COM_S_CHAR 1 254 %ifdef __AMD64__254 %ifdef RT_OS_AMD64 255 255 COM64_S_CHAR %1 256 256 %else … … 371 371 372 372 %macro COM_S_NEWLINE 0 373 %ifdef __AMD64__373 %ifdef RT_OS_AMD64 374 374 COM64_S_NEWLINE 375 375 %else … … 499 499 500 500 %macro COM_S_DWORD_REG 1 501 %ifdef __AMD64__501 %ifdef RT_OS_AMD64 502 502 COM64_S_DWORD_REG %1 503 503 %else … … 627 627 628 628 %macro COM_S_BYTE_REG 1 629 %ifdef __AMD64__629 %ifdef RT_OS_AMD64 630 630 COM64_S_BYTE_REG %1 631 631 %else … … 698 698 699 699 %macro COM_S_DIGIT_REG 1 700 %ifdef __AMD64__700 %ifdef RT_OS_AMD64 701 701 COM64_S_DIGIT_REG %1 702 702 %else -
trunk/include/VBox/com/EventQueue.h
r3634 r3638 23 23 #define ___VBox_com_EventQueue_h 24 24 25 #if defined ( __WIN__)25 #if defined (RT_OS_WINDOWS) 26 26 #include <windows.h> 27 27 #else … … 84 84 private: 85 85 86 #if defined ( __WIN__)86 #if defined (RT_OS_WINDOWS) 87 87 88 88 DWORD mThreadId; -
trunk/include/VBox/com/Guid.h
r3634 r3638 23 23 #define ___VBox_com_Guid_h 24 24 25 #if !defined ( __WIN__)25 #if !defined (RT_OS_WINDOWS) 26 26 #include <nsMemory.h> 27 27 #endif … … 99 99 operator const RTUUID * const () const { return &uuid; } 100 100 101 #if defined( __WIN__)101 #if defined(RT_OS_WINDOWS) 102 102 103 103 // to assign instances to GUIDPARAMOUT parameters from within the interface method -
trunk/include/VBox/com/VirtualBox.h
r3634 r3638 37 37 // generated VirtualBox COM library definition file 38 38 #if !defined (VBOXCOM_NOINCLUDE) 39 #if defined ( __WIN__)39 #if defined (RT_OS_WINDOWS) 40 40 #include <VirtualBox.h> 41 41 #else -
trunk/include/VBox/com/defs.h
r3634 r3638 32 32 #if !defined (VBOX_WITH_XPCOM) 33 33 34 #if defined ( __WIN__)34 #if defined (RT_OS_WINDOWS) 35 35 36 36 // Windows COM … … 72 72 #define COM_IIDOF(I) _ATL_IIDOF (I) 73 73 74 #else // defined ( __WIN__)74 #else // defined (RT_OS_WINDOWS) 75 75 76 76 #error "VBOX_WITH_XPCOM is not defined!" 77 77 78 #endif // defined ( __WIN__)78 #endif // defined (RT_OS_WINDOWS) 79 79 80 80 #else // !defined (VBOX_WITH_XPCOM) … … 83 83 ///////////////////////////////////////////////////////////////////////////// 84 84 85 #if defined ( __OS2__)85 #if defined (RT_OS_OS2) 86 86 87 87 /* Make sure OS/2 Toolkit headers are pulled in to have … … 96 96 #undef TRUE 97 97 98 #endif // defined ( __OS2__)99 100 #if defined ( __DARWIN__)98 #endif // defined (RT_OS_OS2) 99 100 #if defined (RT_OS_DARWIN) 101 101 /* CFBase.h defines these*/ 102 102 # undef FALSE 103 103 # undef TRUE 104 #endif /* __DARWIN__*/104 #endif /* RT_OS_DARWIN */ 105 105 106 106 #include <nsID.h> … … 284 284 } 285 285 286 #endif // !defined ( __WIN__)286 #endif // !defined (RT_OS_WINDOWS) 287 287 288 288 /** -
trunk/include/VBox/com/string.h
r3634 r3638 23 23 #define ___VBox_com_string_h 24 24 25 #if !defined( __WIN__)25 #if !defined(RT_OS_WINDOWS) 26 26 #include <nsMemory.h> 27 27 #endif … … 296 296 if (str) 297 297 { 298 #if defined ( __WIN__)298 #if defined (RT_OS_WINDOWS) 299 299 ::RTStrFree (str); 300 300 #else … … 310 310 if (str && *str == 0) 311 311 { 312 #if defined ( __WIN__)312 #if defined (RT_OS_WINDOWS) 313 313 ::RTStrFree (str); 314 314 #else … … 330 330 if (aSize) 331 331 { 332 #if defined ( __WIN__)332 #if defined (RT_OS_WINDOWS) 333 333 str = (char *) ::RTMemTmpAlloc (aSize); 334 334 #else … … 426 426 { 427 427 if (rs) 428 #if defined ( __WIN__)428 #if defined (RT_OS_WINDOWS) 429 429 ::RTStrDupEx (&ls, rs); 430 430 #else … … 437 437 if (rs) 438 438 { 439 #if defined ( __WIN__)439 #if defined (RT_OS_WINDOWS) 440 440 ::RTStrUcs2ToUtf8 (&ls, (PRTUCS2) rs); 441 441 #else -
trunk/include/VBox/dbggui.h
r3632 r3638 22 22 #define ___VBox_dbggui_h 23 23 24 #if defined( __WIN__)24 #if defined(RT_OS_WINDOWS) 25 25 # include <VirtualBox.h> 26 26 #else -
trunk/include/VBox/hwacc_svm.h
r3632 r3638 652 652 __asm 653 653 { 654 # ifdef __AMD64__654 # ifdef RT_OS_AMD64 655 655 mov rax, pPageGC 656 656 # else -
trunk/include/VBox/stam.mac
r2981 r3638 62 62 %macro STAM_COUNTER_INC 1 63 63 %ifdef VBOX_WITH_STATISTICS 64 %ifdef __AMD64__64 %ifdef RT_OS_AMD64 65 65 STAM64_COUNTER_INC %1 66 66 %else … … 107 107 %macro STAM_COUNTER_ADD 2 108 108 %ifdef VBOX_WITH_STATISTICS 109 %ifdef __AMD64__109 %ifdef RT_OS_AMD64 110 110 STAM64_COUNTER_ADD %1, %2 111 111 %else … … 166 166 %macro STAM_PROFILE_START 1 167 167 %ifdef VBOX_WITH_STATISTICS 168 %ifdef __AMD64__168 %ifdef RT_OS_AMD64 169 169 STAM64_PROFILE_START %1 170 170 %else … … 272 272 %macro STAM_PROFILE_STOP 2 273 273 %ifdef VBOX_WITH_STATISTICS 274 %ifdef __AMD64__274 %ifdef RT_OS_AMD64 275 275 STAM64_PROFILE_STOP %1, %2 276 276 %else … … 317 317 %macro STAM_PROFILE_ADV_START 1 318 318 %ifdef VBOX_WITH_STATISTICS 319 %ifdef __AMD64__319 %ifdef RT_OS_AMD64 320 320 STAM64_PROFILE_ADV_START %1 321 321 %else … … 366 366 %macro STAM_PROFILE_ADV_STOP 1 367 367 %ifdef VBOX_WITH_STATISTICS 368 %ifdef __AMD64__368 %ifdef RT_OS_AMD64 369 369 STAM64_PROFILE_ADV_STOP %1 370 370 %else -
trunk/include/VBox/sup.h
r3632 r3638 207 207 #elif defined(IN_RING0) 208 208 extern DECLIMPORT(SUPGLOBALINFOPAGE) g_SUPGlobalInfoPage; 209 # if defined(__GNUC__) && !defined( __DARWIN__) && defined(__AMD64__)209 # if defined(__GNUC__) && !defined(RT_OS_DARWIN) && defined(RT_OS_AMD64) 210 210 /** Workaround for ELF+GCC problem on 64-bit hosts. 211 211 * (GCC emits a mov with a R_X86_64_32 reloc, we need R_X86_64_64.) */ -
trunk/include/VBox/usblib.h
r3632 r3638 46 46 47 47 #ifndef CTL_CODE 48 # if defined( __WIN__)48 # if defined(RT_OS_WINDOWS) 49 49 # define CTL_CODE(DeviceType, Function, Method, Access) \ 50 50 ( ((DeviceType) << 16) | ((Access) << 14) | ((Function) << 2) | (Method))
Note:
See TracChangeset
for help on using the changeset viewer.