VirtualBox

Changeset 25477 in vbox


Ignore:
Timestamp:
Dec 18, 2009 12:46:53 PM (15 years ago)
Author:
vboxsync
Message:

include: Made the headers build cleanly on linux again.

Location:
trunk/include
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/Makefile.kmk

    r25347 r25477  
    3535        VBox/vrdpusb.h \
    3636        VBox/VBoxHDD.h \
     37        VBox/VBoxHDD-Plugin.h \
     38        VBox/dbus.h \
     39        VBox/uvm.h \
    3740        iprt/tcp.h \
    38         iprt/localipc.h
     41        iprt/localipc.h \
     42        iprt/linux/sysfs.h \
    3943
     44# We omit a few headers which have platform specific issues or are templates.
    4045hdrs := $(filter-out \
    4146        VBox/VBoxGuest16.h \
     47        VBox/VBoxGL2D.h \
    4248        VBox/WinNetConfig.h \
     49        VBox/dbus-calls.h \
    4350        VBox/usblib-win.h \
    44         VBox/usblib-solaris.h, \
    45         $(wildcard VBox/*.h iprt/*.h iprt/*/*.h))
     51        VBox/usblib-solaris.h \
     52        $(foreach os,$(filter-out $(KBUILD_TARGET),$(KBUILD_OSES)),iprt/$(os)/% VBox/$(os)/%) \
     53        $(xforeach arch,$(KBUILD_ARCHES),iprt/nocrt/$(arch)/%) \
     54        , $(wildcard VBox/*.h iprt/*.h iprt/*/*.h))
    4655
    4756hdrs.r3 := $(filter-out , $(hdrs))
     
    5362        iprt/mem.h \
    5463        iprt/alloc.h \
    55         $(cpp_hdrs) $(r3_only_hdrs), \
    56         $(hdrs))
     64        iprt/alloca.h \
     65        $(cpp_hdrs) \
     66        $(r3_only_hdrs) \
     67        , $(hdrs))
    5768
    5869SyntaxVBoxIncludeR3_TEMPLATE = VBOXMAINEXE
     
    7586
    7687
     88# Comment out the next line to simplify header correction.
     89VBOX_ROOT_INCLUDE_MAKEFILE = $(PATH_ROOT)/include/Makefile.kmk
    7790
    7891include $(KBUILD_PATH)/footer.kmk
     
    8295$(eval flatname := $(subst /,_,$(basename $(hdr))))
    8396$$(PATH_TARGET)/$(flatname)-cpp.cpp: $$(PATH_TARGET)/
    84         $$(APPEND) -t -n $$@ '#include <$(hdr)>' 'int main(int argc, char **argv) {(void)argc; (void)argv; return 0;}'
     97        $(QUIET)$$(APPEND) -t -n $$@ '#include <$(hdr)>' 'int main(int argc, char **argv) {(void)argc; (void)argv; return 0;}'
    8598
    86 $$(PATH_TARGET)/$(flatname)-c.c: Makefile.kmk | $$(PATH_TARGET)/
     99$$(PATH_TARGET)/$(flatname)-c.c: $(VBOX_ROOT_INCLUDE_MAKEFILE) | $$(PATH_TARGET)/
    87100ifn1of ($(hdr),$(cpp_hdrs))
    88         $$(APPEND) -t -n $$@ '#include <$(hdr)>' 'int main(int argc, char **argv) {(void)argc; (void)argv; return 0;}'
     101        $(QUIET)$$(APPEND) -t -n $$@ '#include <$(hdr)>' 'int main(int argc, char **argv) {(void)argc; (void)argv; return 0;}'
    89102else
    90         $$(APPEND) -t -n $$@ 'int main(int argc, char **argv) {(void)argc; (void)argv; return 0;}'
     103        $(QUIET)$$(APPEND) -t -n $$@ 'int main(int argc, char **argv) {(void)argc; (void)argv; return 0;}'
    91104endif
    92105
  • trunk/include/VBox/dbus-calls.h

    r24409 r25477  
    3131
    3232#ifndef VBOX_PROXY_STUB
    33 #error This file is a private header, intended to be included in specific places only
     33# error This file is a private header, intended to be included in specific places only
    3434#endif
    3535
  • trunk/include/VBox/dbus.h

    r24409 r25477  
    3333#define ___VBox_DBus_h
    3434
    35 #include <stdint.h>
     35#include <iprt/types.h>
     36#include <iprt/stdarg.h>
    3637
    3738#define VBOX_DBUS_1_3_LIB "libdbus-1.so.3"
     
    5051    void *padding1;
    5152};
     53typedef struct DBusError DBusError;
     54
    5255struct DBusConnection;
    5356typedef struct DBusConnection DBusConnection;
     57
    5458typedef uint32_t dbus_bool_t;
    5559typedef uint32_t dbus_uint32_t;
    5660typedef enum { DBUS_BUS_SESSON, DBUS_BUS_SYSTEM, DBUS_BUS_STARTER } DBusBusType;
     61
    5762struct DBusMessage;
    5863typedef struct DBusMessage DBusMessage;
     64
    5965struct DBusMessageIter
    6066{
     
    104110/* Declarations of the functions that we need from libdbus-1 */
    105111#define VBOX_PROXY_STUB(function, rettype, signature, shortsig) \
    106 RTR3DECL(rettype) ( function ) signature ;
     112    RTR3DECL(rettype) ( function ) signature ;
    107113
    108114#include <VBox/dbus-calls.h>
  • trunk/include/VBox/pdmcommon.h

    r24730 r25477  
    3030#ifndef ___VBox_pdmcommon_h
    3131#define ___VBox_pdmcommon_h
     32
     33#include <VBox/types.h>
    3234
    3335/** @defgroup grp_pdm_common    Common Definitions & Types
  • trunk/include/iprt/nocrt/amd64/math.h

    r8245 r25477  
    3434
    3535
    36 #if RT_INLINE_ASM_GNU_STYLE
     36#if RT_INLINE_ASM_GNU_STYLE && defined(__SSE__)
    3737
    3838DECLINLINE(long double) inline_atan2l(long double lrd1, long double lrd2)
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