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
235da797
Commit
235da797
authored
Mar 11, 2002
by
Patrik Stridvall
Committed by
Alexandre Julliard
Mar 11, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made winebuild (almost) compile and work on Windows.
parent
136fae57
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
62 additions
and
16 deletions
+62
-16
build.h
tools/winebuild/build.h
+54
-0
import.c
tools/winebuild/import.c
+0
-2
main.c
tools/winebuild/main.c
+0
-2
parser.c
tools/winebuild/parser.c
+0
-1
relay.c
tools/winebuild/relay.c
+0
-2
res16.c
tools/winebuild/res16.c
+0
-1
res32.c
tools/winebuild/res32.c
+0
-1
spec16.c
tools/winebuild/spec16.c
+0
-1
spec32.c
tools/winebuild/spec32.c
+8
-5
utils.c
tools/winebuild/utils.c
+0
-1
No files found.
tools/winebuild/build.h
View file @
235da797
...
...
@@ -29,6 +29,60 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef HAVE_DIRECT_H
# include <direct.h>
#endif
#ifdef HAVE_IO_H
# include <io.h>
#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#if !defined(HAVE_POPEN) && defined(HAVE__POPEN)
#define popen _popen
#endif
#if !defined(HAVE_PCLOSE) && defined(HAVE__PCLOSE)
#define pclose _pclose
#endif
#if !defined(HAVE_STRNCASECMP) && defined(HAVE__STRNICMP)
# define strncasecmp _strnicmp
#endif
#if !defined(HAVE_STRCASECMP) && defined(HAVE__STRICMP)
# define strcasecmp _stricmp
#endif
#define PUT_WORD(ptr, w) (*(WORD *)(ptr) = (w))
#define PUT_LE_WORD(ptr, w) \
do { ((BYTE *)(ptr))[0] = LOBYTE(w); \
((BYTE *)(ptr))[1] = HIBYTE(w); } while (0)
#define PUT_BE_WORD(ptr, w) \
do { ((BYTE *)(ptr))[1] = LOBYTE(w); \
((BYTE *)(ptr))[0] = HIBYTE(w); } while (0)
#if defined(ALLOW_UNALIGNED_ACCESS)
#define PUT_UA_WORD(ptr, w) PUT_WORD(ptr, w)
#elif defined(WORDS_BIGENDIAN)
#define PUT_UA_WORD(ptr, w) PUT_BE_WORD(ptr, w)
#else
#define PUT_UA_WORD(ptr, w) PUT_LE_WORD(ptr, w)
#endif
#ifdef NEED_UNDERSCORE_PREFIX
# define __ASM_NAME(name) "_" name
#else
# define __ASM_NAME(name) name
#endif
#ifdef NEED_TYPE_IN_DEF
# define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
#else
# define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
#endif
#ifdef NEED_UNDERSCORE_PREFIX
# define PREFIX "_"
...
...
tools/winebuild/import.c
View file @
235da797
...
...
@@ -23,10 +23,8 @@
#include <fcntl.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include "winnt.h"
#include "build.h"
struct
import
...
...
tools/winebuild/main.c
View file @
235da797
...
...
@@ -26,11 +26,9 @@
#include <assert.h>
#include <stdio.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include "winnt.h"
#include "build.h"
ORDDEF
*
EntryPoints
[
MAX_ORDINALS
];
...
...
tools/winebuild/parser.c
View file @
235da797
...
...
@@ -29,7 +29,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "winbase.h"
#include "build.h"
...
...
tools/winebuild/relay.c
View file @
235da797
...
...
@@ -25,9 +25,7 @@
#include "config.h"
#include <ctype.h>
#include <unistd.h>
#include "winnt.h"
#include "thread.h"
#include "stackframe.h"
...
...
tools/winebuild/res16.c
View file @
235da797
...
...
@@ -24,7 +24,6 @@
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <fcntl.h>
#include <sys/stat.h>
...
...
tools/winebuild/res32.c
View file @
235da797
...
...
@@ -24,7 +24,6 @@
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <fcntl.h>
#include <sys/stat.h>
...
...
tools/winebuild/spec16.c
View file @
235da797
...
...
@@ -23,7 +23,6 @@
*/
#include "config.h"
#include "wine/port.h"
#include <assert.h>
#include <ctype.h>
...
...
tools/winebuild/spec32.c
View file @
235da797
...
...
@@ -26,7 +26,6 @@
#include <assert.h>
#include <ctype.h>
#include <unistd.h>
#include <string.h>
#include "winbase.h"
...
...
@@ -439,12 +438,16 @@ void BuildSpec32File( FILE *outfile )
#ifdef HAVE_GETPAGESIZE
page_size
=
getpagesize
();
#else
# ifdef __svr4__
#elif defined(__svr4__)
page_size
=
sysconf
(
_SC_PAGESIZE
);
# else
#elif defined(_WINDOWS)
{
SYSTEM_INFO
si
;
GetSystemInfo
(
&
si
);
page_size
=
si
.
dwPageSize
;
}
#else
# error Cannot get the page size on this platform
# endif
#endif
AssignOrdinals
();
...
...
tools/winebuild/utils.c
View file @
235da797
...
...
@@ -25,7 +25,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "build.h"
...
...
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