Commit 79f1638d authored by Uwe Bonnes's avatar Uwe Bonnes Committed by Alexandre Julliard

Fixes for C++ Winelib compilation.

parent 6dd19961
#ifndef __WINE_XMALLOC_H
#define __WINE_XMALLOC_H
#ifdef __cplusplus
extern "C" {
#endif
void *xmalloc( int size );
void *xcalloc( int size );
void *xrealloc( void *ptr, int size );
char *xstrdup( const char *str );
#ifdef __cplusplus
}
#endif
#endif /* __WINE_XMALLOC_H */
......@@ -7,7 +7,11 @@
extern int PASCAL WinMain(HINSTANCE32,HINSTANCE32,LPSTR,int);
/* external declaration here because we don't want to depend on Wine headers */
#ifdef __cplusplus
extern "C" HINSTANCE32 MAIN_WinelibInit( int *argc, char *argv[] );
#else
extern HINSTANCE32 MAIN_WinelibInit( int *argc, char *argv[] );
#endif
/* Most Windows C/C++ compilers use something like this to */
/* access argc and argv globally: */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment