VirtualBox

Changeset 39206 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Nov 4, 2011 3:16:16 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
74719
Message:

Made OpenGL build against the Mac OS X 10.7 SDK. Some cleanups.

File:
1 edited

Legend:

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

    r31665 r39206  
    11/** @file
    2  *
    32 * VBoxCocoa Helper
    43 */
    54
    65/*
    7  * Copyright (C) 2009-2010 Oracle Corporation
     6 * Copyright (C) 2009-2011 Oracle Corporation
    87 *
    98 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    2524 */
    2625
    27 #ifndef __VBoxCocoa_h__
    28 #define __VBoxCocoa_h__
     26#ifndef ___VBox_VBoxCocoa_h
     27#define ___VBox_VBoxCocoa_h
    2928
    30 /* Macro which add a typedef of the given Cocoa class in an appropriate form
     29/** Macro which add a typedef of the given Cocoa class in an appropriate form
    3130 * for the current context. This means void* in the C/CPP context and
    3231 * NSWhatever* in the ObjC/ObjCPP context. Use
     
    3534 * right type in the Cocoa context. */
    3635#ifdef __OBJC__
    37 #define ADD_COCOA_NATIVE_REF(CocoaClass) \
    38 @class CocoaClass; \
    39 typedef CocoaClass *Native##CocoaClass##Ref; \
    40 typedef const CocoaClass *ConstNative##CocoaClass##Ref
    41 #else /* __OBJC__ */
    42 #define ADD_COCOA_NATIVE_REF(CocoaClass) \
    43 typedef void *Native##CocoaClass##Ref; \
    44 typedef const void *ConstNative##CocoaClass##Ref
    45 #endif /* __OBJC__ */
     36# define ADD_COCOA_NATIVE_REF(CocoaClass) \
     37    @class CocoaClass; \
     38    typedef CocoaClass *Native##CocoaClass##Ref; \
     39    typedef const CocoaClass *ConstNative##CocoaClass##Ref
     40#else  /* !__OBJC__ */
     41# define ADD_COCOA_NATIVE_REF(CocoaClass) \
     42    typedef void *Native##CocoaClass##Ref; \
     43    typedef const void *ConstNative##CocoaClass##Ref
     44#endif /* !__OBJC__ */
    4645
    47 /* Check for OBJC++ */
     46
     47/*
     48 * Objective-C++ Helpers.
     49 */
    4850#if defined(__OBJC__) && defined (__cplusplus)
    4951
    5052/* Global includes */
    51 #import <Foundation/NSAutoreleasePool.h>
     53# import <Foundation/NSAutoreleasePool.h>
    5254
    53 /* Helper class for automatic creation & destroying of a cocoa auto release
    54    pool. */
     55/** Helper class for automatic creation & destroying of a cocoa auto release
     56 *  pool. */
    5557class CocoaAutoreleasePool
    5658{
     
    6971};
    7072
    71 #endif /* __OBJC__ */
     73#endif /* __OBJC__ && __cplusplus */
    7274
    73 #endif /* __VBoxCocoa_h__ */
     75#endif /* !___VBox_VBoxCocoa_h */
    7476
Note: See TracChangeset for help on using the changeset viewer.

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