include: Remove wine/port.h.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2021-12-01 15:56:55 +01:00
parent 143bd63b27
commit 8d6c33c3bf
68 changed files with 25 additions and 159 deletions

View file

@ -18,7 +18,6 @@
*/
#include "config.h"
#include "wine/port.h"
#define COBJMACROS
#define VK_NO_PROTOTYPES

View file

@ -18,7 +18,6 @@
*/
#include "config.h"
#include "wine/port.h"
#include "dxgi_private.h"

View file

@ -18,7 +18,6 @@
*/
#include "config.h"
#include "wine/port.h"
#include "dxgi_private.h"

View file

@ -18,7 +18,6 @@
*/
#include "config.h"
#include "wine/port.h"
#define DXGI_INIT_GUID
#include "dxgi_private.h"

View file

@ -18,7 +18,6 @@
*/
#include "config.h"
#include "wine/port.h"
#include "dxgi_private.h"

View file

@ -17,7 +17,6 @@
*/
#include "config.h"
#include "wine/port.h"
#include "dxgi_private.h"

View file

@ -18,7 +18,6 @@
*/
#include "config.h"
#include "wine/port.h"
#include "dxgi_private.h"

View file

@ -18,7 +18,6 @@
*/
#include "config.h"
#include "wine/port.h"
#include "dxgi_private.h"
@ -29,6 +28,7 @@
#define VKD3D_NO_WIN32_TYPES
#ifndef USE_WIN32_VULKAN
#define WINE_VK_HOST
#include <dlfcn.h>
#endif
#include "wine/vulkan.h"
#include "wine/vulkan_driver.h"

View file

@ -18,7 +18,6 @@
*/
#include "config.h"
#include "wine/port.h"
#include "dxgi_private.h"

View file

@ -19,11 +19,11 @@
*/
#include "config.h"
#include "wine/port.h"
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <math.h>
#include "windef.h"

View file

@ -19,7 +19,6 @@
*/
#include "config.h"
#include "wine/port.h"
#include <assert.h>
#include <errno.h>

View file

@ -21,10 +21,10 @@
#define NONAMELESSSTRUCT
#define NONAMELESSUNION
#include "config.h"
#include "wine/port.h"
#include <stdarg.h>
#include <string.h>
#include <dlfcn.h>
#include <link.h>
#include "windef.h"

View file

@ -19,7 +19,6 @@
#define NONAMELESSUNION
#define COBJMACROS
#include "config.h"
#include "wine/port.h"
#include <stdarg.h>
#include <errno.h>
@ -33,6 +32,7 @@
#include <fcntl.h>
#include <unistd.h>
#include <math.h>
#include <dlfcn.h>
#include <SLES/OpenSLES.h>
#include <SLES/OpenSLES_Android.h>

View file

@ -25,12 +25,12 @@
*/
#include "config.h"
#include "wine/port.h"
#include <assert.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <dlfcn.h>
#ifdef HAVE_EGL_EGL_H
#include <EGL/egl.h>
#endif

View file

@ -24,7 +24,6 @@
#define NONAMELESSSTRUCT
#include "config.h"
#include "wine/port.h"
#include <assert.h>
#include <fcntl.h>

View file

@ -22,7 +22,6 @@
*/
#include "config.h"
#include "wine/port.h"
#include <stdio.h>

View file

@ -17,7 +17,6 @@
*/
#include "config.h"
#include "wine/port.h"
#include "wined3d_private.h"
#include "wine/vulkan_driver.h"

View file

@ -28,7 +28,6 @@
*/
#include "config.h"
#include "wine/port.h"
#include <stdio.h>

View file

@ -19,7 +19,6 @@
*/
#include "config.h"
#include "wine/port.h"
#include <stdio.h>

View file

@ -23,7 +23,6 @@
*/
#include "config.h"
#include "wine/port.h"
#include "wined3d_private.h"

View file

@ -25,7 +25,6 @@
*/
#include "config.h"
#include "wine/port.h"
#include "wined3d_private.h"

View file

@ -25,7 +25,6 @@
*/
#include "config.h"
#include "wine/port.h"
#include "wined3d_private.h"

View file

@ -23,7 +23,6 @@
*/
#include "config.h"
#include "wine/port.h"
#include "wined3d_private.h"

View file

@ -17,7 +17,6 @@
*/
#include "config.h"
#include "wine/port.h"
#include "wined3d_private.h"
WINE_DEFAULT_DEBUG_CHANNEL(d3d);

View file

@ -25,11 +25,6 @@
*/
#include "config.h"
#include "wine/port.h"
#ifdef HAVE_FLOAT_H
# include <float.h>
#endif
#include "wined3d_private.h"

View file

@ -22,7 +22,6 @@
*/
#include "config.h"
#include "wine/port.h"
#include "wined3d_private.h"
#include "winternl.h"

View file

@ -19,12 +19,8 @@
*/
#include "config.h"
#include "wine/port.h"
#include <stdio.h>
#ifdef HAVE_FLOAT_H
# include <float.h>
#endif
#include "wined3d_private.h"

View file

@ -30,7 +30,6 @@
*/
#include "config.h"
#include "wine/port.h"
#include <limits.h>
#include <stdio.h>

View file

@ -19,8 +19,8 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "config.h"
#include "wine/port.h"
#include <stdio.h>

View file

@ -18,8 +18,8 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "config.h"
#include "wine/port.h"
#include "wined3d_private.h"
WINE_DEFAULT_DEBUG_CHANNEL(d3d);

View file

@ -18,9 +18,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "config.h"
#include "wine/port.h"
#include "wined3d_private.h"
WINE_DEFAULT_DEBUG_CHANNEL(d3d);

View file

@ -22,7 +22,6 @@
*/
#include "config.h"
#include "wine/port.h"
#include "wined3d_private.h"
WINE_DEFAULT_DEBUG_CHANNEL(d3d);

View file

@ -18,7 +18,6 @@
*/
#include "config.h"
#include "wine/port.h"
#include "wined3d_private.h"

View file

@ -23,7 +23,6 @@
*/
#include "config.h"
#include "wine/port.h"
#include <stdio.h>
#include <string.h>

View file

@ -23,7 +23,6 @@
*/
#include "config.h"
#include "wine/port.h"
#include "wined3d_private.h"

View file

@ -17,7 +17,6 @@
*/
#include "config.h"
#include "wine/port.h"
#include "wined3d_private.h"

View file

@ -18,7 +18,6 @@
*/
#include "config.h"
#include "wine/port.h"
#include "wined3d_private.h"
@ -26,6 +25,7 @@ WINE_DECLARE_DEBUG_CHANNEL(winediag);
#ifdef SONAME_LIBVKD3D_SHADER
#include <dlfcn.h>
#define VKD3D_SHADER_NO_PROTOTYPES
#include <vkd3d_shader.h>

View file

@ -26,12 +26,8 @@
*/
#include "config.h"
#include "wine/port.h"
#include <stdio.h>
#ifdef HAVE_FLOAT_H
# include <float.h>
#endif
#include "wined3d_private.h"

View file

@ -23,7 +23,6 @@
*/
#include "config.h"
#include "wine/port.h"
#include "wined3d_private.h"
WINE_DEFAULT_DEBUG_CHANNEL(d3d);

View file

@ -27,7 +27,6 @@
*/
#include "config.h"
#include "wine/port.h"
#include "wined3d_private.h"
WINE_DEFAULT_DEBUG_CHANNEL(d3d);

View file

@ -21,7 +21,6 @@
*/
#include "config.h"
#include "wine/port.h"
#include "wined3d_private.h"
WINE_DEFAULT_DEBUG_CHANNEL(d3d);

View file

@ -21,7 +21,6 @@
*/
#include "config.h"
#include "wine/port.h"
#include "wined3d_private.h"
WINE_DEFAULT_DEBUG_CHANNEL(d3d);

View file

@ -25,7 +25,6 @@
*/
#include "config.h"
#include "wine/port.h"
#include <stdio.h>

View file

@ -23,7 +23,6 @@
*/
#include "config.h"
#include "wine/port.h"
#include "wined3d_private.h"
WINE_DEFAULT_DEBUG_CHANNEL(d3d_decl);

View file

@ -18,7 +18,6 @@
*/
#include "config.h"
#include "wine/port.h"
#include "wined3d_private.h"
#include "wined3d_shaders.h"

View file

@ -23,7 +23,6 @@
*/
#include "config.h"
#include "wine/port.h"
#include "initguid.h"
#include "wined3d_private.h"

View file

@ -34,6 +34,7 @@
#include <assert.h>
#include <stdarg.h>
#include <stdbool.h>
#include <sys/types.h>
#include <math.h>
#include <limits.h>
#include "ntstatus.h"

View file

@ -36,7 +36,6 @@
*/
#include "config.h"
#include "wine/port.h"
#ifdef HAVE_LINUX_22_JOYSTICK_API

View file

@ -20,7 +20,6 @@
*/
#include "config.h"
#include "wine/port.h"
#include "macdrv.h"

View file

@ -22,15 +22,11 @@
* the other drivers. */
#include "config.h"
#include "wine/port.h"
#include "macdrv.h"
#include <stdarg.h>
#include <stdio.h>
#include "windef.h"
#include "winbase.h"
#include "macdrv.h"
#include "wine/debug.h"
#include "wine/heap.h"

View file

@ -40,15 +40,13 @@
*/
#include "config.h"
#include "wine/port.h"
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <stdio.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#ifdef HAVE_SYS_IOCTL_H

View file

@ -19,14 +19,12 @@
*/
#include "config.h"
#include "wine/port.h"
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>
#ifdef HAVE_SYS_IOCTL_H
# include <sys/ioctl.h>

View file

@ -64,7 +64,6 @@
*/
#include "config.h"
#include "wine/port.h"
#include <string.h>
#include <stdarg.h>
@ -74,6 +73,7 @@
# include <unistd.h>
#endif
#include <fcntl.h>
#include <dlfcn.h>
#include <limits.h>
#include <time.h>
#include <assert.h>

View file

@ -20,10 +20,9 @@
*/
#include "config.h"
#include "wine/port.h"
#include <math.h>
#include <dlfcn.h>
#include <X11/Xlib.h>
#include <X11/cursorfont.h>
#include <stdarg.h>

View file

@ -24,12 +24,11 @@
*/
#include "config.h"
#include "wine/port.h"
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <dlfcn.h>
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif

View file

@ -21,10 +21,10 @@
* the other drivers. */
#include "config.h"
#include "wine/port.h"
#include <stdarg.h>
#include <stdio.h>
#include <dlfcn.h>
#include "windef.h"
#include "winbase.h"

View file

@ -21,7 +21,6 @@
*/
#include "config.h"
#include "wine/port.h"
#include <stdarg.h>
#include <stdlib.h>

View file

@ -19,11 +19,11 @@
*/
#include "config.h"
#include "wine/port.h"
#include <stdlib.h>
#include <stdarg.h>
#include <math.h>
#include <dlfcn.h>
#include "windef.h"
#include "winbase.h"

View file

@ -20,7 +20,6 @@
*/
#include "config.h"
#include "wine/port.h"
#include <fcntl.h>
#include <stdarg.h>
@ -33,6 +32,7 @@
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <dlfcn.h>
#include <X11/cursorfont.h>
#include <X11/Xlib.h>
#ifdef HAVE_XKB

View file

@ -20,7 +20,6 @@
*/
#include "config.h"
#include "wine/port.h"
#include <string.h>
#ifdef HAVE_UNISTD_H

View file

@ -19,7 +19,6 @@
*/
#include "config.h"
#include "wine/port.h"
#include <stdarg.h>
#include <stdlib.h>
@ -27,6 +26,7 @@
#ifdef HAVE_X11_EXTENSIONS_XINERAMA_H
#include <X11/extensions/Xinerama.h>
#endif
#include <dlfcn.h>
#include "x11drv.h"
#include "wine/debug.h"
#include "wine/heap.h"

View file

@ -21,7 +21,6 @@
*/
#include "config.h"
#include "wine/port.h"
#define NONAMELESSSTRUCT
#define NONAMELESSUNION
@ -38,6 +37,7 @@ WINE_DECLARE_DEBUG_CHANNEL(winediag);
#include <assert.h>
#include <X11/Xlib.h>
#include <X11/extensions/Xrandr.h>
#include <dlfcn.h>
#include "x11drv.h"
#define VK_NO_PROTOTYPES

View file

@ -22,13 +22,14 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "config.h"
#include "wine/port.h"
#include <assert.h>
#include <stdarg.h>
#include <string.h>
#include <stdlib.h>
#include <dlfcn.h>
#include "windef.h"
#include "winbase.h"

View file

@ -20,12 +20,12 @@
*/
#include "config.h"
#include "wine/port.h"
#include <assert.h>
#include <string.h>
#include <stdio.h>
#include <math.h>
#include <dlfcn.h>
#define NONAMELESSSTRUCT
#define NONAMELESSUNION

View file

@ -1,69 +0,0 @@
/*
* Wine porting definitions
*
* Copyright 1996 Alexandre Julliard
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef __WINE_WINE_PORT_H
#define __WINE_WINE_PORT_H
#ifndef __WINE_CONFIG_H
# error You must include config.h to use this header
#endif
#ifdef __WINE_BASETSD_H
# error You must include port.h before all other headers
#endif
#ifdef WINE_UNIX_LIB
# error port.h should not be used in Unix libraries
#endif
#include <sys/types.h>
/****************************************************************
* Hard-coded values for the Windows platform
*/
#ifdef _WIN32
#include <errno.h>
#define dlopen(name,flags) NULL
#define dlsym(handle,name) NULL
static inline int dlclose(void *handle) { return 0; }
static inline const char *dlerror(void) { return "No dlopen support on Windows"; }
static inline int symlink(const char *from, const char *to) { errno = ENOSYS; return -1; }
#ifdef _MSC_VER
/* The UCRT headers in the Windows SDK #error out if we #define snprintf.
* The C headers that came with previous Visual Studio versions do not have
* snprintf. Check for VS 2015, which appears to be the first version to
* use the UCRT headers by default. */
#if _MSC_VER < 1900
# define snprintf _snprintf
#endif
#endif
#else
#include <dlfcn.h>
#endif /* _WIN32 */
#endif /* !defined(__WINE_WINE_PORT_H) */

View file

@ -303,7 +303,6 @@ extern "C" {
/* Constants for WSAPoll() */
#ifndef USE_WS_PREFIX
#ifndef __WINE_WINE_PORT_H
#define POLLERR 0x0001
#define POLLHUP 0x0002
#define POLLNVAL 0x0004
@ -314,7 +313,6 @@ extern "C" {
#define POLLPRI 0x0400
#define POLLIN (POLLRDNORM|POLLRDBAND)
#define POLLOUT (POLLWRNORM)
#endif
#else
#define WS_POLLERR 0x0001
#define WS_POLLHUP 0x0002

View file

@ -43,7 +43,6 @@ double [0-9]+\.[0-9]+([eE][+-]?[0-9]+)*
%{
#include "config.h"
#include "wine/port.h"
#include <stdio.h>
#include <stdlib.h>

View file

@ -113,7 +113,6 @@
%top{
#include "config.h"
#include "wine/port.h"
}
/*