- Timestamp:
- Mar 23, 2009 5:16:17 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/cbinding/VBoxXPCOMCGlue.c
r18020 r18155 32 32 * Header Files * 33 33 *******************************************************************************/ 34 35 #ifdef VBOX_WITH_XPCOM 36 # define VIR_ALLOC_N(a, b) ((a) = (char *)malloc(b)) 37 # define VIR_FREE(name) (free(name)) 38 #else /* !VBOX_WITH_XPCOM */ 34 #ifndef VBOX_WITH_XPCOM /** @todo Find libvirt define to test for! */ 39 35 # include <config.h> 40 36 # include "memory.h" … … 47 43 48 44 #include "VBoxXPCOMCGlue.h" 45 49 46 50 47 /******************************************************************************* … … 61 58 #endif 62 59 60 #ifdef VBOX_WITH_XPCOM /** @todo Find libvirt define to test for! */ 61 # define VIR_ALLOC_N(a, b) ((a) = (char *)malloc(b)) 62 # define VIR_FREE(name) (free(name)) 63 #endif /* !VBOX_WITH_XPCOM */ 64 65 66 /******************************************************************************* 67 * Global Variables * 68 *******************************************************************************/ 63 69 /** The dlopen handle for VBoxXPCOMC. */ 64 70 void *g_hVBoxXPCOMC = NULL; … … 192 198 } 193 199 200 194 201 /** 195 202 * Terminate the C glue library. … … 211 218 memset(g_szVBoxErrMsg, 0, sizeof(g_szVBoxErrMsg)); 212 219 } 220
Note:
See TracChangeset
for help on using the changeset viewer.