- Timestamp:
- Nov 26, 2008 12:56:39 AM (16 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r14555 r14613 35 35 36 36 #include <stdlib.h> 37 #include <stdarg.h>38 37 39 38 #include <vector> … … 41 40 #endif /* !VBOX_ONLY_DOCS */ 42 41 43 #include <iprt/ runtime.h>42 #include <iprt/initterm.h> 44 43 #include <iprt/stream.h> 45 44 #include <iprt/string.h> 45 #include <iprt/stdarg.h> 46 46 #include <iprt/asm.h> 47 47 #include <iprt/uuid.h> … … 74 74 75 75 /** command handler type */ 76 typedef DECLCALLBACK(int) FNHANDLER(int argc, char *argv[], ComPtr<IVirtualBox> aVirtualBox, ComPtr<ISession> aSession); 77 typedef FNHANDLER *PFNHANDLER; 76 typedef int (*PFNHANDLER)(int argc, char *argv[], ComPtr<IVirtualBox> aVirtualBox, ComPtr<ISession> aSession); 78 77 79 78 #ifdef USE_XPCOM_QUEUE … … 1446 1445 } 1447 1446 1447 /** @todo refine this after HDD changes; MSC 8.0/64 has trouble with handleModifyVM. */ 1448 #if defined(_MSC_VER) 1449 # pragma optimize("g", off) 1450 #endif 1451 1448 1452 static int handleModifyVM(int argc, char *argv[], 1449 1453 ComPtr<IVirtualBox> virtualBox, ComPtr<ISession> session) … … 3255 3259 } 3256 3260 3261 /** @todo refine this after HDD changes; MSC 8.0/64 has trouble with handleModifyVM. */ 3262 #if defined(_MSC_VER) 3263 # pragma optimize("", on) 3264 #endif 3265 3257 3266 static int handleStartVM(int argc, char *argv[], 3258 3267 ComPtr<IVirtualBox> virtualBox, ComPtr<ISession> session) -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp
r14611 r14613 107 107 108 108 /* Disable global optimizations for MSC 8.0/64 to make it compile in reasonable 109 time. MSC 7.1/32 doesn't have any trouble with it. */ 110 #if defined(_MSC_VER) && defined(RT_ARCH_AMD64) 109 time. MSC 7.1/32 doesn't have quite as much trouble with it, but still 110 sufficient to qualify for this hack as well since this code isn't performance 111 critical and probably won't gain much from the extra optimizing in real life. */ 112 #if defined(_MSC_VER) 111 113 # pragma optimize("g", off) 112 114 #endif … … 1851 1853 } 1852 1854 1855 #if defined(_MSC_VER) 1856 # pragma optimize("", on) 1857 #endif 1858 1853 1859 int handleShowVMInfo(int argc, char *argv[], 1854 1860 ComPtr<IVirtualBox> virtualBox, ComPtr<ISession> session)
Note:
See TracChangeset
for help on using the changeset viewer.