Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
ef6e33f8
Commit
ef6e33f8
authored
Nov 03, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Don't include wine/port.h in Unix libraries.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ef9a0f3b
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
30 additions
and
20 deletions
+30
-20
gnutls.c
dlls/bcrypt/gnutls.c
+2
-1
freetype.c
dlls/dwrite/freetype.c
+3
-1
unixlib.c
dlls/kerberos/unixlib.c
+4
-1
unixlib.c
dlls/netapi32/unixlib.c
+2
-5
unixlib.c
dlls/odbc32/unixlib.c
+2
-1
schannel_gnutls.c
dlls/secur32/schannel_gnutls.c
+2
-1
opengl.c
dlls/win32u/dibdrv/opengl.c
+3
-1
freetype.c
dlls/win32u/freetype.c
+3
-4
bus_iohid.c
dlls/winebus.sys/bus_iohid.c
+1
-1
bus_sdl.c
dlls/winebus.sys/bus_sdl.c
+4
-4
port.h
include/wine/port.h
+4
-0
No files found.
dlls/bcrypt/gnutls.c
View file @
ef6e33f8
...
@@ -23,13 +23,14 @@
...
@@ -23,13 +23,14 @@
#endif
#endif
#include "config.h"
#include "config.h"
#include "wine/port.h"
#ifdef HAVE_GNUTLS_CIPHER_INIT
#ifdef HAVE_GNUTLS_CIPHER_INIT
#include <stdarg.h>
#include <stdarg.h>
#include <stdlib.h>
#include <stdlib.h>
#include <assert.h>
#include <assert.h>
#include <sys/types.h>
#include <dlfcn.h>
#include <gnutls/gnutls.h>
#include <gnutls/gnutls.h>
#include <gnutls/crypto.h>
#include <gnutls/crypto.h>
#include <gnutls/abstract.h>
#include <gnutls/abstract.h>
...
...
dlls/dwrite/freetype.c
View file @
ef6e33f8
...
@@ -23,7 +23,9 @@
...
@@ -23,7 +23,9 @@
#endif
#endif
#include "config.h"
#include "config.h"
#include "wine/port.h"
#include <sys/types.h>
#include <dlfcn.h>
#ifdef HAVE_FT2BUILD_H
#ifdef HAVE_FT2BUILD_H
#include <ft2build.h>
#include <ft2build.h>
...
...
dlls/kerberos/unixlib.c
View file @
ef6e33f8
...
@@ -26,10 +26,13 @@
...
@@ -26,10 +26,13 @@
#endif
#endif
#include "config.h"
#include "config.h"
#if defined(SONAME_LIBKRB5) && defined(SONAME_LIBGSSAPI_KRB5)
#if defined(SONAME_LIBKRB5) && defined(SONAME_LIBGSSAPI_KRB5)
#include "wine/port.h"
#include <stdarg.h>
#include <stdarg.h>
#include <sys/types.h>
#include <dlfcn.h>
#ifdef HAVE_KRB5_KRB5_H
#ifdef HAVE_KRB5_KRB5_H
# include <krb5/krb5.h>
# include <krb5/krb5.h>
#endif
#endif
...
...
dlls/netapi32/unixlib.c
View file @
ef6e33f8
...
@@ -24,7 +24,6 @@
...
@@ -24,7 +24,6 @@
#endif
#endif
#include "config.h"
#include "config.h"
#include "wine/port.h"
#ifdef SONAME_LIBNETAPI
#ifdef SONAME_LIBNETAPI
...
@@ -32,12 +31,10 @@
...
@@ -32,12 +31,10 @@
#include <stdlib.h>
#include <stdlib.h>
#include <fcntl.h>
#include <fcntl.h>
#include <errno.h>
#include <errno.h>
#i
fdef HAVE_SYS_WAIT_H
#i
nclude <sys/types.h>
#include <sys/wait.h>
#include <sys/wait.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#include <unistd.h>
#
endif
#
include <dlfcn.h>
#include "ntstatus.h"
#include "ntstatus.h"
#define WIN32_NO_STATUS
#define WIN32_NO_STATUS
...
...
dlls/odbc32/unixlib.c
View file @
ef6e33f8
...
@@ -29,10 +29,11 @@
...
@@ -29,10 +29,11 @@
#endif
#endif
#include "config.h"
#include "config.h"
#include "wine/port.h"
#include <stdarg.h>
#include <stdarg.h>
#include <stdlib.h>
#include <stdlib.h>
#include <sys/types.h>
#include <dlfcn.h>
#include "ntstatus.h"
#include "ntstatus.h"
#define WIN32_NO_STATUS
#define WIN32_NO_STATUS
...
...
dlls/secur32/schannel_gnutls.c
View file @
ef6e33f8
...
@@ -24,12 +24,13 @@
...
@@ -24,12 +24,13 @@
#endif
#endif
#include "config.h"
#include "config.h"
#include "wine/port.h"
#include <stdarg.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
#include <errno.h>
#include <errno.h>
#include <sys/types.h>
#include <dlfcn.h>
#ifdef SONAME_LIBGNUTLS
#ifdef SONAME_LIBGNUTLS
#include <gnutls/gnutls.h>
#include <gnutls/gnutls.h>
#include <gnutls/crypto.h>
#include <gnutls/crypto.h>
...
...
dlls/win32u/dibdrv/opengl.c
View file @
ef6e33f8
...
@@ -23,7 +23,9 @@
...
@@ -23,7 +23,9 @@
#endif
#endif
#include "config.h"
#include "config.h"
#include "wine/port.h"
#include <sys/types.h>
#include <dlfcn.h>
#include "ntstatus.h"
#include "ntstatus.h"
#define WIN32_NO_STATUS
#define WIN32_NO_STATUS
...
...
dlls/win32u/freetype.c
View file @
ef6e33f8
...
@@ -26,14 +26,13 @@
...
@@ -26,14 +26,13 @@
#endif
#endif
#include "config.h"
#include "config.h"
#include "wine/port.h"
#include <stdarg.h>
#include <stdarg.h>
#include <stdlib.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <fcntl.h>
#ifdef HAVE_SYS_STAT_H
#include <dlfcn.h>
# include <sys/stat.h>
#endif
#ifdef HAVE_SYS_MMAN_H
#ifdef HAVE_SYS_MMAN_H
# include <sys/mman.h>
# include <sys/mman.h>
#endif
#endif
...
...
dlls/winebus.sys/bus_iohid.c
View file @
ef6e33f8
...
@@ -22,9 +22,9 @@
...
@@ -22,9 +22,9 @@
#endif
#endif
#include "config.h"
#include "config.h"
#include "wine/port.h"
#include <stdarg.h>
#include <stdarg.h>
#include <sys/types.h>
#if defined(HAVE_IOKIT_HID_IOHIDLIB_H)
#if defined(HAVE_IOKIT_HID_IOHIDLIB_H)
#define DWORD UInt32
#define DWORD UInt32
...
...
dlls/winebus.sys/bus_sdl.c
View file @
ef6e33f8
...
@@ -23,14 +23,14 @@
...
@@ -23,14 +23,14 @@
#endif
#endif
#include "config.h"
#include "config.h"
#include "wine/port.h"
#include <errno.h>
#include <errno.h>
#include <fcntl.h>
#include <fcntl.h>
#include <stdarg.h>
#include <stdarg.h>
#include <stdlib.h>
#include <stdlib.h>
#i
fdef HAVE_UNISTD_H
#i
nclude <unistd.h>
#
include <unistd
.h>
#
include <sys/types
.h>
#
endif
#
include <dlfcn.h>
#ifdef HAVE_SDL_H
#ifdef HAVE_SDL_H
# include <SDL.h>
# include <SDL.h>
#endif
#endif
...
...
include/wine/port.h
View file @
ef6e33f8
...
@@ -29,6 +29,10 @@
...
@@ -29,6 +29,10 @@
# error You must include port.h before all other headers
# error You must include port.h before all other headers
#endif
#endif
#ifdef WINE_UNIX_LIB
# error port.h should not be used in Unix libraries
#endif
#include <sys/types.h>
#include <sys/types.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