diff options
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/auxiliary/os/os_process.c | 6 | ||||
-rw-r--r-- | src/gallium/auxiliary/util/u_debug_refcnt.c | 2 | ||||
-rw-r--r-- | src/gallium/auxiliary/util/u_debug_refcnt.h | 2 | ||||
-rw-r--r-- | src/gallium/auxiliary/util/u_debug_symbol.c | 2 | ||||
-rw-r--r-- | src/gallium/auxiliary/util/u_network.c | 10 | ||||
-rw-r--r-- | src/gallium/auxiliary/util/u_network.h | 2 | ||||
-rw-r--r-- | src/gallium/include/pipe/p_config.h | 17 |
7 files changed, 12 insertions, 29 deletions
diff --git a/src/gallium/auxiliary/os/os_process.c b/src/gallium/auxiliary/os/os_process.c index 766cf806153..a2c859b78b3 100644 --- a/src/gallium/auxiliary/os/os_process.c +++ b/src/gallium/auxiliary/os/os_process.c @@ -31,7 +31,7 @@ #include "util/u_memory.h" #include "util/u_process.h" -#if defined(PIPE_SUBSYSTEM_WINDOWS_USER) +#if defined(PIPE_OS_WINDOWS) # include <windows.h> #elif defined(PIPE_OS_HAIKU) # include <kernel/OS.h> @@ -62,7 +62,7 @@ os_get_process_name(char *procname, size_t size) if (!name) { /* do normal query */ -#if defined(PIPE_SUBSYSTEM_WINDOWS_USER) +#if defined(PIPE_OS_WINDOWS) char szProcessPath[MAX_PATH]; char *lpProcessName; char *lpProcessExt; @@ -112,7 +112,7 @@ os_get_process_name(char *procname, size_t size) boolean os_get_command_line(char *cmdline, size_t size) { -#if defined(PIPE_SUBSYSTEM_WINDOWS_USER) +#if defined(PIPE_OS_WINDOWS) const char *args = GetCommandLine(); if (args) { strncpy(cmdline, args, size); diff --git a/src/gallium/auxiliary/util/u_debug_refcnt.c b/src/gallium/auxiliary/util/u_debug_refcnt.c index 728dbee9735..ec95f87260c 100644 --- a/src/gallium/auxiliary/util/u_debug_refcnt.c +++ b/src/gallium/auxiliary/util/u_debug_refcnt.c @@ -85,7 +85,7 @@ debug_serial(void *p, unsigned *pserial) { unsigned serial; boolean found = TRUE; -#ifdef PIPE_SUBSYSTEM_WINDOWS_USER +#ifdef PIPE_OS_WINDOWS static boolean first = TRUE; if (first) { diff --git a/src/gallium/auxiliary/util/u_debug_refcnt.h b/src/gallium/auxiliary/util/u_debug_refcnt.h index e1b4adbaf73..78f690b025f 100644 --- a/src/gallium/auxiliary/util/u_debug_refcnt.h +++ b/src/gallium/auxiliary/util/u_debug_refcnt.h @@ -36,7 +36,7 @@ extern "C" { typedef void (*debug_reference_descriptor)(char*, const struct pipe_reference*); -#if defined(DEBUG) && (!defined(PIPE_OS_WINDOWS) || defined(PIPE_SUBSYSTEM_WINDOWS_USER)) +#if defined(DEBUG) extern int debug_refcnt_state; diff --git a/src/gallium/auxiliary/util/u_debug_symbol.c b/src/gallium/auxiliary/util/u_debug_symbol.c index 5bc1c3d4fb2..4ea6c8d07b0 100644 --- a/src/gallium/auxiliary/util/u_debug_symbol.c +++ b/src/gallium/auxiliary/util/u_debug_symbol.c @@ -292,7 +292,7 @@ const char* debug_symbol_name_cached(const void *addr) { const char* name; -#ifdef PIPE_SUBSYSTEM_WINDOWS_USER +#ifdef PIPE_OS_WINDOWS static boolean first = TRUE; if (first) { diff --git a/src/gallium/auxiliary/util/u_network.c b/src/gallium/auxiliary/util/u_network.c index 15c30f375b0..a87ddab0bde 100644 --- a/src/gallium/auxiliary/util/u_network.c +++ b/src/gallium/auxiliary/util/u_network.c @@ -5,7 +5,7 @@ #include "util/u_string.h" #include <stdio.h> -#if defined(PIPE_SUBSYSTEM_WINDOWS_USER) +#if defined(PIPE_OS_WINDOWS) # include <winsock2.h> # include <windows.h> # include <ws2tcpip.h> @@ -22,7 +22,7 @@ boolean u_socket_init(void) { -#if defined(PIPE_SUBSYSTEM_WINDOWS_USER) +#if defined(PIPE_OS_WINDOWS) WORD wVersionRequested; WSADATA wsaData; int err; @@ -46,7 +46,7 @@ u_socket_init(void) void u_socket_stop(void) { -#if defined(PIPE_SUBSYSTEM_WINDOWS_USER) +#if defined(PIPE_OS_WINDOWS) WSACleanup(); #endif } @@ -60,7 +60,7 @@ u_socket_close(int s) #if defined(PIPE_OS_UNIX) shutdown(s, SHUT_RDWR); close(s); -#elif defined(PIPE_SUBSYSTEM_WINDOWS_USER) +#elif defined(PIPE_OS_WINDOWS) shutdown(s, SD_BOTH); closesocket(s); #else @@ -189,7 +189,7 @@ u_socket_block(int s, boolean block) fcntl(s, F_SETFL, old & ~O_NONBLOCK); else fcntl(s, F_SETFL, old | O_NONBLOCK); -#elif defined(PIPE_SUBSYSTEM_WINDOWS_USER) +#elif defined(PIPE_OS_WINDOWS) u_long iMode = block ? 0 : 1; ioctlsocket(s, FIONBIO, &iMode); #else diff --git a/src/gallium/auxiliary/util/u_network.h b/src/gallium/auxiliary/util/u_network.h index 2b7ce3f4bd2..be1fa00dcb4 100644 --- a/src/gallium/auxiliary/util/u_network.h +++ b/src/gallium/auxiliary/util/u_network.h @@ -4,7 +4,7 @@ #include "pipe/p_compiler.h" -#if defined(PIPE_SUBSYSTEM_WINDOWS_USER) || defined(PIPE_OS_UNIX) +#if defined(PIPE_OS_WINDOWS) || defined(PIPE_OS_UNIX) # define PIPE_HAVE_SOCKETS #endif diff --git a/src/gallium/include/pipe/p_config.h b/src/gallium/include/pipe/p_config.h index 859e4c4db2a..ca14da66ef7 100644 --- a/src/gallium/include/pipe/p_config.h +++ b/src/gallium/include/pipe/p_config.h @@ -143,8 +143,6 @@ /* * Auto-detect the operating system family. - * - * See subsystem below for a more fine-grained distinction. */ #if defined(__linux__) @@ -213,19 +211,4 @@ #define PIPE_OS_UNIX #endif -/* - * Try to auto-detect the subsystem. - * - * NOTE: There is no way to auto-detect most of these. - */ - -#if defined(PIPE_OS_WINDOWS) -#if defined(PIPE_SUBSYSTEM_WINDOWS_USER) -/* Windows User-space Library */ -#else -#define PIPE_SUBSYSTEM_WINDOWS_USER -#endif -#endif /* PIPE_OS_WINDOWS */ - - #endif /* P_CONFIG_H_ */ |