Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
79f1638d
Commit
79f1638d
authored
Nov 30, 1998
by
Uwe Bonnes
Committed by
Alexandre Julliard
Nov 30, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes for C++ Winelib compilation.
parent
6dd19961
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
xmalloc.h
include/xmalloc.h
+8
-0
winestub.c
library/winestub.c
+4
-0
No files found.
include/xmalloc.h
View file @
79f1638d
#ifndef __WINE_XMALLOC_H
#ifndef __WINE_XMALLOC_H
#define __WINE_XMALLOC_H
#define __WINE_XMALLOC_H
#ifdef __cplusplus
extern
"C"
{
#endif
void
*
xmalloc
(
int
size
);
void
*
xmalloc
(
int
size
);
void
*
xcalloc
(
int
size
);
void
*
xcalloc
(
int
size
);
void
*
xrealloc
(
void
*
ptr
,
int
size
);
void
*
xrealloc
(
void
*
ptr
,
int
size
);
char
*
xstrdup
(
const
char
*
str
);
char
*
xstrdup
(
const
char
*
str
);
#ifdef __cplusplus
}
#endif
#endif
/* __WINE_XMALLOC_H */
#endif
/* __WINE_XMALLOC_H */
library/winestub.c
View file @
79f1638d
...
@@ -7,7 +7,11 @@
...
@@ -7,7 +7,11 @@
extern
int
PASCAL
WinMain
(
HINSTANCE32
,
HINSTANCE32
,
LPSTR
,
int
);
extern
int
PASCAL
WinMain
(
HINSTANCE32
,
HINSTANCE32
,
LPSTR
,
int
);
/* external declaration here because we don't want to depend on Wine headers */
/* 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
[]
);
extern
HINSTANCE32
MAIN_WinelibInit
(
int
*
argc
,
char
*
argv
[]
);
#endif
/* Most Windows C/C++ compilers use something like this to */
/* Most Windows C/C++ compilers use something like this to */
/* access argc and argv globally: */
/* access argc and argv globally: */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment