diff options
Diffstat (limited to 'include/VBox/VBoxTpG.h')
-rw-r--r-- | include/VBox/VBoxTpG.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/include/VBox/VBoxTpG.h b/include/VBox/VBoxTpG.h index 260ee6f2..4d23dd34 100644 --- a/include/VBox/VBoxTpG.h +++ b/include/VBox/VBoxTpG.h @@ -4,7 +4,7 @@ */ /* - * Copyright (C) 2012 Oracle Corporation + * Copyright (C) 2012-2013 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free software; @@ -122,8 +122,18 @@ typedef VTGPROBELOC const *PCVTGPROBELOC; # error "Unsupported Darwin compiler!" # endif -#elif defined(RT_OS_OS2) -# error "OS/2 is not supported" +#elif defined(RT_OS_OS2) /** @todo This doesn't actually work, but it makes the code compile. */ +# define VTG_OBJ_SECT "__DATA" +# define VTG_LOC_SECT "__VTGPrLc" +# define VTG_LOC_SET "__VTGPrLcSet" +# ifdef __GNUC__ +# define VTG_DECL_VTGPROBELOC(a_VarName) \ + static VTGPROBELOC a_VarName; \ + __asm__ (".stabs \"__VTGPrLcSet\", 23, 0, 0, _" #a_VarName ); + +# else +# error "Unsupported Darwin compiler!" +# endif #else /* Assume the rest uses ELF. */ # define VTG_OBJ_SECT ".VTGObj" |