VirtualBox

Changeset 24577 in vbox for trunk/include


Ignore:
Timestamp:
Nov 11, 2009 10:31:52 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
54708
Message:

Main,VMM,VBox/cdefs.h: build fix; added IN_VMM_STATIC.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/cdefs.h

    r22802 r24577  
    179179
    180180/** @def IN_SUP_R0
    181  * Used to indicate whether we're inside the same link module as the Ring 0 Support Library or not.
     181 * Used to indicate whether we're inside the same link module as the Ring 0
     182 * Support Library or not.
     183 */
     184/** @def IN_SUP_STATIC
     185 * Used to indicate that the Support Library is built or used as a static
     186 * library.
    182187 */
    183188/** @def SUPR0DECL(type)
     
    244249
    245250
     251/** @def IN_VMM_STATIC
     252 * Used to indicate that the virtual machine monitor is built or used as a
     253 * static library.
     254 */
    246255/** @def IN_VMM_R3
    247256 * Used to indicate whether we're inside the same link module as the ring 3 part of the
     
    253262 */
    254263#ifdef IN_VMM_R3
    255 # define VMMR3DECL(type)            DECLEXPORT(type) VBOXCALL
     264# ifdef IN_VMM_STATIC
     265#  define VMMR3DECL(type)           DECLHIDDEN(type) VBOXCALL
     266# else
     267#  define VMMR3DECL(type)           DECLEXPORT(type) VBOXCALL
     268# endif
    256269#elif defined(IN_RING3)
    257 # define VMMR3DECL(type)            DECLIMPORT(type) VBOXCALL
     270# ifdef IN_VMM_STATIC
     271#  define VMMR3DECL(type)           DECLHIDDEN(type) VBOXCALL
     272# else
     273#  define VMMR3DECL(type)           DECLIMPORT(type) VBOXCALL
     274# endif
    258275#else
    259276# define VMMR3DECL(type)            DECL_INVALID(type)
     
    308325 * @param   type    The return type of the function declaration.
    309326 */
    310 #if defined(IN_VMM_R3) || defined(IN_VMM_R0) || defined(IN_VMM_RC)
     327#ifdef IN_VMM_STATIC
     328# define VMMDECL(type)              DECLHIDDEN(type) VBOXCALL
     329#elif defined(IN_VMM_R3) || defined(IN_VMM_R0) || defined(IN_VMM_RC)
    311330# define VMMDECL(type)              DECLEXPORT(type) VBOXCALL
    312331#else
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette