diff options
Diffstat (limited to 'include/VBox/cdefs.h')
-rw-r--r-- | include/VBox/cdefs.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/include/VBox/cdefs.h b/include/VBox/cdefs.h index 652f7f6b..0744b763 100644 --- a/include/VBox/cdefs.h +++ b/include/VBox/cdefs.h @@ -3,7 +3,7 @@ */ /* - * Copyright (C) 2006-2007 Oracle Corporation + * Copyright (C) 2006-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; @@ -203,9 +203,17 @@ * @param type The return type of the function declaration. */ #ifdef IN_SUP_R3 -# define SUPR3DECL(type) DECLEXPORT(type) VBOXCALL +# ifdef IN_SUP_STATIC +# define SUPR3DECL(type) DECLHIDDEN(type) VBOXCALL +# else +# define SUPR3DECL(type) DECLEXPORT(type) VBOXCALL +# endif #else -# define SUPR3DECL(type) DECLIMPORT(type) VBOXCALL +# ifdef IN_SUP_STATIC +# define SUPR3DECL(type) DECLHIDDEN(type) VBOXCALL +# else +# define SUPR3DECL(type) DECLIMPORT(type) VBOXCALL +# endif #endif /** @def IN_SUP_R0 @@ -409,7 +417,7 @@ * VMM internal function, ring-0 + raw-mode context. * @param type The return type of the function declaration. */ -#ifdef IN_VMM_RZ +#if defined(IN_VMM_RC) || defined(IN_VMM_R0) # define VMMRZ_INT_DECL(type) DECLHIDDEN(type) VBOXCALL #else # define VMMRZ_INT_DECL(type) DECL_INVALID(type) |