]> git.sesse.net Git - vlc/commitdiff
Use _WIN32 rather than WIN32 (same for WIN64)
authorRafaël Carré <funman@videolan.org>
Wed, 5 Jun 2013 13:41:18 +0000 (15:41 +0200)
committerRafaël Carré <funman@videolan.org>
Wed, 5 Jun 2013 14:06:10 +0000 (16:06 +0200)
http://msdn.microsoft.com/en-us/library/b0084kay(v=vs.80).aspx only
mentions the _ prefixed variable.

gcc will always define the _ prefixed variable, like Visual Studio.
The prefixless one is defined in some language standards, e.g. gnu99
but not c99.

141 files changed:
bin/winvlc.c
compat/flockfile.c
compat/fsync.c
compat/getpid.c
compat/inet_pton.c
compat/poll.c
compat/posix_memalign.c
configure.ac
contrib/src/lame/lame-forceinline.patch
contrib/src/zvbi/zvbi-win32.patch
include/vlc/libvlc.h
include/vlc_charset.h
include/vlc_common.h
include/vlc_fs.h
include/vlc_interface.h
include/vlc_intf_strings.h
include/vlc_network.h
include/vlc_plugin.h
include/vlc_threads.h
lib/media_player.c
modules/access/cdda.c
modules/access/directory.c
modules/access/dtv/access.c
modules/access/dv.c
modules/access/dvdnav.c
modules/access/dvdread.c
modules/access/file.c
modules/access/live555.cpp
modules/access/rtp/input.c
modules/access/rtp/srtp.c
modules/access/screen/screen.c
modules/access/smb.c
modules/access/vcd/cdrom.c
modules/access/vcd/cdrom_internals.h
modules/access/vcd/vcd.c
modules/access/vcdx/access.c
modules/access/vdr.c
modules/access/zip/unzip/ioapi.h
modules/access/zip/unzip/unzip.h
modules/access_output/file.c
modules/access_output/udp.c
modules/codec/dmo/buffer.c
modules/codec/dmo/dmo.c
modules/codec/dmo/dmo.h
modules/codec/fluidsynth.c
modules/codec/libass.c
modules/codec/omxil/OMX_Types.h
modules/codec/quicktime.c
modules/control/dummy.c
modules/control/globalhotkeys/win32.c
modules/control/rc.c
modules/demux/mkv/mkv.cpp
modules/demux/playlist/playlist.c
modules/gui/eject.c
modules/gui/qt4/components/open_panels.cpp
modules/gui/qt4/components/open_panels.hpp
modules/gui/qt4/components/preferences_widgets.cpp
modules/gui/qt4/components/simple_preferences.cpp
modules/gui/qt4/components/simple_preferences.hpp
modules/gui/qt4/components/sout/profile_selector.cpp
modules/gui/qt4/dialogs/vlm.cpp
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.hpp
modules/gui/qt4/qt4.cpp
modules/gui/qt4/qt4.hpp
modules/gui/qt4/recents.cpp
modules/gui/qt4/util/registry.cpp
modules/gui/skins2/parser/builder.cpp
modules/gui/skins2/src/skin_common.hpp
modules/gui/skins2/src/skin_main.cpp
modules/gui/skins2/src/theme_repository.cpp
modules/gui/skins2/src/vout_manager.hpp
modules/gui/skins2/utils/bezier.cpp
modules/lua/extension.c
modules/lua/intf.c
modules/lua/libs.h
modules/lua/libs/equalizer.c
modules/lua/libs/net.c
modules/lua/vlc.c
modules/meta_engine/taglib.cpp
modules/misc/gnutls.c
modules/misc/rtsp.c
modules/misc/xml/libxml.c
modules/services_discovery/sap.c
modules/stream_out/chromaprint.c
modules/stream_out/rtcp.c
modules/stream_out/rtp.c
modules/stream_out/rtsp.c
modules/text_renderer/freetype.c
modules/text_renderer/svg.c
modules/video_filter/atmo/AtmoCalculations.cpp
modules/video_filter/atmo/AtmoClassicConnection.cpp
modules/video_filter/atmo/AtmoClassicConnection.h
modules/video_filter/atmo/AtmoDefs.h
modules/video_filter/atmo/AtmoDmxSerialConnection.cpp
modules/video_filter/atmo/AtmoDmxSerialConnection.h
modules/video_filter/atmo/AtmoExternalCaptureInput.h
modules/video_filter/atmo/AtmoMultiConnection.cpp
modules/video_filter/atmo/AtmoMultiConnection.h
modules/video_filter/atmo/AtmoZoneDefinition.cpp
modules/video_filter/atmo/FnordlichtConnection.cpp
modules/video_filter/atmo/FnordlichtConnection.h
modules/video_filter/atmo/MoMoConnection.cpp
modules/video_filter/atmo/MoMoConnection.h
modules/video_filter/atmo/atmo.cpp
modules/video_filter/deinterlace/yadif_template.h
modules/video_filter/panoramix.c
modules/video_filter/scene.c
modules/video_output/aa.c
modules/video_output/caca.c
modules/video_output/fb.c
modules/video_output/opengl.h
modules/video_output/sdl.c
modules/visualization/projectm.cpp
src/config/file.c
src/config/help.c
src/input/es_out_timeshift.c
src/interface/interface.c
src/libvlc-module.c
src/libvlc.c
src/libvlc.h
src/misc/block.c
src/misc/cpu.c
src/misc/messages.c
src/misc/objects.c
src/misc/update.c
src/modules/cache.c
src/modules/textdomain.c
src/network/httpd.c
src/network/io.c
src/network/rootbind.c
src/network/tcp.c
src/network/udp.c
src/stream_output/sap.c
src/stream_output/stream_output.c
src/text/charset.c
src/text/strings.c
src/text/unicode.c
src/text/url.c
src/video_output/vout_wrapper.c
src/video_output/window.c

index db97bae35cf4465b2bf546fd612dbdef9724e3e8..134d5064cf30a0b843aec8051e991120d4025311 100644 (file)
@@ -275,7 +275,7 @@ LONG WINAPI vlc_exception_filter(struct _EXCEPTION_POINTERS *lpExceptionInfo)
         for( unsigned int i = 0; i < pException->NumberParameters; i++ )
             fwprintf( fd, L" | %p", pException->ExceptionInformation[i] );
 
-#ifdef WIN64
+#ifdef _WIN64
         fwprintf( fd, L"\n\n[context]\nRDI:%px\nRSI:%px\n" \
                     "RBX:%px\nRDX:%px\nRCX:%px\nRAX:%px\n" \
                     "RBP:%px\nRIP:%px\nRSP:%px\nR8:%px\n" \
@@ -298,7 +298,7 @@ LONG WINAPI vlc_exception_filter(struct _EXCEPTION_POINTERS *lpExceptionInfo)
 
         fwprintf( fd, L"\n[stacktrace]\n#EIP|base|module\n" );
 
-#ifdef WIN64
+#ifdef _WIN64
         LPCVOID caller = (LPCVOID)pContext->Rip;
         LPVOID *pBase  = (LPVOID*)pContext->Rbp;
 #else
index 6d6c936631cc9d30f13c7c301908ff38101206c9..d01fd1ffd83ac6fc82f2682ea91c68c5a72c2ccc 100644 (file)
@@ -24,7 +24,7 @@
 
 #include <stdio.h>
 
-#ifdef WIN32
+#ifdef _WIN32
 # ifndef HAVE__LOCK_FILE
 #  warning Broken SDK: VLC logs will be garbage.
 #  define _lock_file(s) ((void)(s))
index 8352d8018dd61b40478ed810ee4dbc0483fe1d57..a84ab6314d8f5f60a0a62d9db899b95a6c8b450d 100644 (file)
 # include <config.h>
 #endif
 
-#ifdef WIN32
+#ifdef _WIN32
 # include <io.h>
 #endif
 
 int fsync (int fd)
 {
-#if defined(WIN32)
+#if defined(_WIN32)
     /* WinCE can use FlushFileBuffers() but it operates on file handles */
     return _commit (fd);
 #else
index 7e120f2c4a5a616252d21b43bd85ee766218f70f..d6275e7df357a854e6c59ab7d3854fd0c729cfdc 100644 (file)
 #endif
 
 #include <sys/types.h>
-#ifdef WIN32
+#ifdef _WIN32
 # include <windows.h>
 #endif
 
 pid_t getpid (void)
 {
-#if defined (WIN32)
+#if defined (_WIN32)
     return (pid_t) GetCurrentProcessId ();
 #elif defined (__native_client__)
     return 1;
index 8e0c4c1a83dd46cf305919babdc0f3fbe5d4045b..f5f5f093ab70a36fadab793462732ca0b6311715 100644 (file)
@@ -26,7 +26,7 @@
 #include <errno.h>
 
 #include <sys/types.h>
-#ifndef WIN32
+#ifndef _WIN32
 # include <sys/socket.h>
 #else
 # include <winsock2.h>
index ef00fa592488f6408c088ebade4e4a8686ceb610..8c37609863b129f95b9cc0625dd06380dc953913 100644 (file)
@@ -26,7 +26,7 @@
 #include <string.h>
 #include <errno.h>
 
-#ifdef WIN32
+#ifdef _WIN32
 # ifdef FD_SETSIZE
 /* Too late for #undef FD_SETSIZE to work: fd_set is already defined. */
 #  error Header inclusion order compromised!
@@ -40,7 +40,7 @@
 
 int (poll) (struct pollfd *fds, unsigned nfds, int timeout)
 {
-#ifdef WIN32
+#ifdef _WIN32
     size_t setsize = sizeof (fd_set) + nfds * sizeof (SOCKET);
     fd_set *rdset = malloc (setsize);
     fd_set *wrset = malloc (setsize);
@@ -89,7 +89,7 @@ int (poll) (struct pollfd *fds, unsigned nfds, int timeout)
          * Note that Vista has a much nicer WSAPoll(), but Mingw does not
          * support it yet.
          */
-#ifndef WIN32
+#ifndef _WIN32
         if ((unsigned)fd >= FD_SETSIZE)
         {
             errno = EINVAL;
@@ -123,7 +123,7 @@ int (poll) (struct pollfd *fds, unsigned nfds, int timeout)
                        | (FD_ISSET (fd, wrset) ? POLLOUT : 0)
                        | (FD_ISSET (fd, exset) ? POLLPRI : 0);
     }
-#ifdef WIN32
+#ifdef _WIN32
     free (exset);
     free (wrset);
     free (rdset);
index b273385cd9a15bca0f059bdd5673e6cafcc6684f..3c6ffdfe28dc3deb5edf8e8cd10866ddbbb786ee 100644 (file)
@@ -33,7 +33,7 @@ static int check_align (size_t align)
     return EINVAL;
 }
 
-#if !defined (WIN32) && !defined (__APPLE__)
+#if !defined (_WIN32) && !defined (__APPLE__)
 #include <malloc.h>
 
 int posix_memalign (void **ptr, size_t align, size_t size)
index c6cd08f48508f7079b6bd4aec029439b8968b300..878e413cdcc3af63f5f52b67b74eff40c1325b6a 100644 (file)
@@ -204,7 +204,7 @@ case "${host_os}" in
   *mingw32* | *cygwin* | *wince* | *mingwce*)
     AC_CHECK_TOOL(WINDRES, windres, :)
     AC_CHECK_TOOL(OBJCOPY, objcopy, :)
-    AH_TOP([#if defined(WIN32) && !defined(_WIN32_WINNT)])
+    AH_TOP([#if defined(_WIN32) && !defined(_WIN32_WINNT)])
     AH_TOP([# define _WIN32_WINNT 0x0502 /* Windows XP SP2 */])
     AH_TOP([#endif])
     AC_DEFINE([_WIN32_IE], 0x0600, [Define to '0x0600' for IE 6.0 (and shell) APIs.])
@@ -219,7 +219,7 @@ case "${host_os}" in
         dnl Check if we are using the mno-cygwin mode in which case we are
         dnl actually dealing with a mingw32 compiler.
         AC_EGREP_CPP(yes,
-            [#ifdef WIN32
+            [#ifdef _WIN32
              yes
              #endif],
             SYS=mingw32, AC_MSG_ERROR([VLC requires -mno-cygwin]))
@@ -564,7 +564,7 @@ AC_CHECK_TYPES([struct pollfd],,,
 [#include <sys/types.h>
 #if HAVE_POLL
 # include <poll.h>
-#elif defined (WIN32)
+#elif defined (_WIN32)
 # include <winsock2.h>
 #endif
 ])
@@ -590,7 +590,7 @@ AC_SEARCH_LIBS([getaddrinfo], [nsl], [
 
 LIBS="${LIBS} ${SOCKET_LIBS}"
 AC_LINK_IFELSE([
-    AC_LANG_PROGRAM([#ifdef WIN32
+    AC_LANG_PROGRAM([#ifdef _WIN32
         # if _WIN32_WINNT < 0x600
         #  error Needs vista+
         # endif
@@ -616,7 +616,7 @@ AC_CACHE_CHECK([for socklen_t in sys/socket.h], dnl ` (fix VIM syntax highlight
 ac_cv_type_socklen_t,
 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
 [#include <sys/types.h>
-#ifdef WIN32
+#ifdef _WIN32
 # include <winsock2.h>
 # include <ws2tcpip.h>
 #else
@@ -633,7 +633,7 @@ AH_TEMPLATE(ss_family, [Define to `sa_family' if <sys/socket.h> does not define.
 AC_CACHE_CHECK([for struct sockaddr_storage], ac_cv_struct_sockaddr_storage,
   [AC_TRY_COMPILE(
     [#include <sys/types.h>
-     #if defined( WIN32 )
+     #if defined( _WIN32 )
      # include <winsock2.h>
      #else
      # include <sys/socket.h>
index 883fc6d42fe67f926de6b8bab9e3321238e4891d..1dabba09547dfe29714d1e613771311e6ed6f6e6 100644 (file)
@@ -5,7 +5,7 @@ diff -ru lame.orig/libmp3lame/vbrquantize.c lame/libmp3lame/vbrquantize.c
  #    define FORCEINLINE __forceinline
  #  endif
  #  endif
-+#elif defined (WIN32)
++#elif defined (_WIN32)
 +#  define VOLATILE
 +/* Make sure FORCEINLINE does not include "extern" */
 +#  undef FORCEINLINE
index 44f32b999e5bb8770a6c3b0971b0e3f6573c563a..d9433820c2474abe2fa776e6137253a8da7a38a1 100644 (file)
@@ -5,7 +5,7 @@ diff -ruN zvbi/src/conv.c zvbi.new/src/conv.c
  #endif
  
  #include <errno.h>
-+#ifndef WIN32
++#ifndef _WIN32
  #include <langinfo.h>
 +#endif
  
@@ -16,7 +16,7 @@ diff -ruN zvbi/src/conv.c zvbi.new/src/conv.c
  
        dst_format = bind_textdomain_codeset (vbi_intl_domainname, NULL);
 -
-+#ifdef WIN32
++#ifdef _WIN32
 +#warning this is wrong
 +#else
        if (NULL == dst_format)
@@ -62,7 +62,7 @@ diff -ruN zvbi/src/packet.c zvbi.new/src/packet.c
  #include <fcntl.h>
  #include <time.h>
  #include <errno.h>
-+#ifndef WIN32
++#ifndef _WIN32
  #include <sys/ioctl.h>
 +#endif
  
@@ -75,7 +75,7 @@ diff -ruN zvbi/src/proxy-msg.c zvbi.new/src/proxy-msg.c
  #include <netinet/tcp.h>
  #include <arpa/inet.h>
  #include <netdb.h>
-+#ifndef WIN32
++#ifndef _WIN32
  #include <syslog.h>
 +#endif
  #include <assert.h>
@@ -88,7 +88,7 @@ diff -ruN zvbi/src/proxy-msg.h zvbi.new/src/proxy-msg.h
  #ifndef PROXY_MSG_H
  #define PROXY_MSG_H
  
-+#ifndef WIN32
++#ifndef _WIN32
  #include <sys/syslog.h>
 +#endif
  
@@ -101,7 +101,7 @@ diff -ruN zvbi/src/vbi.c zvbi.new/src/vbi.c
  #include <fcntl.h>
  #include <time.h>
  #include <errno.h>
-+#ifndef WIN32
++#ifndef _WIN32
  #include <sys/ioctl.h>
 +#endif
  #include <sys/time.h>
@@ -138,7 +138,7 @@ diff -ruN zvbi/src/vbi.c zvbi.new/src/vbi.c
  
  #include <fcntl.h>            /* open() */
  #include <unistd.h>           /* close(), mmap(), munmap(), gettimeofday() */
-+#ifndef WIN32
++#ifndef _WIN32
  #include <sys/ioctl.h>                /* ioctl() */
  #include <sys/mman.h>         /* mmap(), munmap() */
 +#endif
@@ -150,7 +150,7 @@ diff -ruN zvbi/src/vbi.c zvbi.new/src/vbi.c
  }
  
 -
-+#ifndef WIN32
++#ifndef _WIN32
  /**
   * @internal
   *
@@ -167,7 +167,7 @@ diff -ruN zvbi/src/vbi.c zvbi.new/src/vbi.c
                                 "EXCL", O_EXCL,
                                 "TRUNC", O_TRUNC,
                                 "APPEND", O_APPEND,
-+#ifndef WIN32
++#ifndef _WIN32
                                 "NONBLOCK", O_NONBLOCK,
 +#endif
                                 0);
@@ -177,7 +177,7 @@ diff -ruN zvbi/src/vbi.c zvbi.new/src/vbi.c
        return err;
  }
  
-+#ifndef WIN32
++#ifndef _WIN32
  /**
   * @internal
   * Drop-in for mmap(). Logs the request on fp if not NULL.
index b4a8c91693d9ee3094932e9cde424ebb95512e8d..32d04165945db97133576f681b5ad1c866fa8cf8 100644 (file)
@@ -38,7 +38,7 @@
 #ifndef VLC_LIBVLC_H
 #define VLC_LIBVLC_H 1
 
-#if defined (WIN32) && defined (DLL_EXPORT)
+#if defined (_WIN32) && defined (DLL_EXPORT)
 # define LIBVLC_API __declspec(dllexport)
 #elif defined (__GNUC__) && (__GNUC__ >= 4)
 # define LIBVLC_API __attribute__((visibility("default")))
index 56808f37d4b6b293912498da0322bf69c5d45d70..4de57ab70f369c91338676f8ca154ecab427ca5e 100644 (file)
@@ -48,7 +48,7 @@ VLC_API const char * IsUTF8( const char * ) VLC_USED;
 VLC_API char * FromCharset( const char *charset, const void *data, size_t data_size ) VLC_USED;
 VLC_API void * ToCharset( const char *charset, const char *in, size_t *outsize ) VLC_USED;
 
-#ifdef WIN32
+#ifdef _WIN32
 VLC_USED
 static inline char *FromWide (const wchar_t *wide)
 {
index d75f2167241eac43a132a197cea104b25e2e889a..6116f8e53d3d43202a1f722622264c5974d84485 100644 (file)
 # define VLC_EXTERN
 #endif
 
-#if defined (WIN32) && defined (DLL_EXPORT)
+#if defined (_WIN32) && defined (DLL_EXPORT)
 # define VLC_EXPORT __declspec(dllexport)
 #elif VLC_GCC_VERSION(4,0)
 # define VLC_EXPORT __attribute__((visibility("default")))
@@ -392,7 +392,7 @@ typedef int ( * vlc_callback_t ) ( vlc_object_t *,      /* variable's object */
 /*****************************************************************************
  * OS-specific headers and thread types
  *****************************************************************************/
-#if defined( WIN32 )
+#if defined( _WIN32 )
 #   include <malloc.h>
 #   ifndef PATH_MAX
 #       define PATH_MAX MAX_PATH
@@ -774,7 +774,7 @@ static inline void SetQWLE (void *p, uint64_t qw)
 
 /* Stuff defined in src/extras/libc.c */
 
-#if defined(WIN32)
+#if defined(_WIN32)
 /* several type definitions */
 #   if defined( __MINGW32__ )
 #       if !defined( _OFF_T_ )
@@ -794,7 +794,7 @@ static inline void SetQWLE (void *p, uint64_t qw)
 #   endif
 
 #   include <tchar.h>
-#endif /* WIN32 */
+#endif /* _WIN32 */
 
 VLC_API bool vlc_ureduce( unsigned *, unsigned *, uint64_t, uint64_t, uint64_t );
 
@@ -803,7 +803,7 @@ VLC_API bool vlc_ureduce( unsigned *, unsigned *, uint64_t, uint64_t, uint64_t )
 #include <AvailabilityMacros.h>
 #endif
 
-#ifdef WIN32
+#ifdef _WIN32
 # define vlc_memalign(align, size) (__mingw_aligned_malloc(size, align))
 # define vlc_free(base)            (__mingw_aligned_free(base))
 #elif defined(__APPLE__) && !defined(MAC_OS_X_VERSION_10_6)
@@ -906,7 +906,7 @@ VLC_API const char * VLC_Compiler( void ) VLC_USED;
 #include "vlc_main.h"
 #include "vlc_configuration.h"
 
-#if defined( WIN32 ) || defined( __SYMBIAN32__ ) || defined( __OS2__ )
+#if defined( _WIN32 ) || defined( __SYMBIAN32__ ) || defined( __OS2__ )
 #   define DIR_SEP_CHAR '\\'
 #   define DIR_SEP "\\"
 #   define PATH_SEP_CHAR ';'
index c0def6bb83238cf3ffd0d0374fddf668749ec30d..e0fc4b561ab99a135a09f020b4d0a63bed40f9e9 100644 (file)
@@ -45,7 +45,7 @@ VLC_API int vlc_unlink( const char *filename );
 VLC_API int vlc_rename( const char *oldpath, const char *newpath );
 VLC_API char *vlc_getcwd( void ) VLC_USED;
 
-#if defined( WIN32 )
+#if defined( _WIN32 )
 static inline int vlc_closedir( DIR *dir )
 {
     _WDIR *wdir = *(_WDIR **)dir;
index 078fc90505312d32a65a922b3d979dbd9ebd02c8..9bc6241b7eb84459a28f3fee32bff129d74bad80 100644 (file)
@@ -120,7 +120,7 @@ typedef struct msg_subscription { } msg_subscription_t;
 
 /*@}*/
 
-#if defined( WIN32 ) && !VLC_WINSTORE_APP
+#if defined( _WIN32 ) && !VLC_WINSTORE_APP
 #    define CONSOLE_INTRO_MSG \
          if( !getenv( "PWD" ) ) /* detect Cygwin shell or Wine */ \
          { \
index 3815e17586836e0d99a2367931e0f3e39d8afbf1..c075c98c6b869684955a93147e5311e530fffc14 100644 (file)
@@ -35,7 +35,7 @@
    2. folder: a string with the same meaning but with directory
               substituted with "folder"
 */
-#if defined( WIN32 ) || defined(__APPLE__)
+#if defined( _WIN32 ) || defined(__APPLE__)
     #define I_DIR_OR_FOLDER( dir, folder ) folder
 #else
     #define I_DIR_OR_FOLDER( dir, folder ) dir
index 25680cc3a85114e3fb18cb7e93e78b842ab201be..d438642203dcf8b21606b8a5003754223162cc52 100644 (file)
@@ -32,7 +32,7 @@
  * This file defines interface to communicate with network plug-ins
  */
 
-#if defined( WIN32 )
+#if defined( _WIN32 )
 #   define _NO_OLDNAMES 1
 #   include <io.h>
 #   include <winsock2.h>
@@ -157,7 +157,7 @@ VLC_API ssize_t net_Printf( vlc_object_t *p_this, int fd, const v_socket_t *, co
 VLC_API ssize_t net_vaPrintf( vlc_object_t *p_this, int fd, const v_socket_t *, const char *psz_fmt, va_list args );
 #define net_vaPrintf(a,b,c,d,e) net_vaPrintf(VLC_OBJECT(a),b,c,d,e)
 
-#ifdef WIN32
+#ifdef _WIN32
 /* Microsoft: same semantic, same value, different name... go figure */
 # define SHUT_RD SD_RECEIVE
 # define SHUT_WR SD_SEND
@@ -226,7 +226,7 @@ VLC_API ssize_t net_vaPrintf( vlc_object_t *p_this, int fd, const v_socket_t *,
 # define AI_IDN 0 /* GNU/libc extension */
 #endif
 
-#ifdef WIN32
+#ifdef _WIN32
 # undef gai_strerror
 # define gai_strerror gai_strerrorA
 #endif
index 276ebc3ab5c7f40b611abff445ed51e184a24195..b31a9c6db37c276d7174ae0a521a5993823d78c2 100644 (file)
@@ -216,7 +216,7 @@ enum vlc_module_properties
 
 #define CDECL_SYMBOL
 #if defined (__PLUGIN__)
-# if defined (WIN32)
+# if defined (_WIN32)
 #   define DLL_SYMBOL              __declspec(dllexport)
 #   undef CDECL_SYMBOL
 #   define CDECL_SYMBOL            __cdecl
index ae835882f759a5521ba4402618dd1d56ab55bb73..1ffbae6798ab0b1278e9e52d89d0c56a049e0212 100644 (file)
@@ -34,7 +34,7 @@
  *
  */
 
-#if defined (WIN32)
+#if defined (_WIN32)
 # include <process.h>
 # ifndef ETIMEDOUT
 #  define ETIMEDOUT 10060 /* This is the value in winsock.h. */
index 936640038917fe6ef982ebe648494856905b81dc..c48daa49e4e96de5ea3eb8ec906d7e32544ee4ab 100644 (file)
@@ -390,7 +390,7 @@ libvlc_media_player_new( libvlc_instance_t *instance )
     var_Create (mp, "vmem-height", VLC_VAR_INTEGER | VLC_VAR_DOINHERIT);
     var_Create (mp, "vmem-pitch", VLC_VAR_INTEGER | VLC_VAR_DOINHERIT);
     var_Create (mp, "drawable-xid", VLC_VAR_INTEGER);
-#if defined (WIN32) || defined (__OS2__)
+#if defined (_WIN32) || defined (__OS2__)
     var_Create (mp, "drawable-hwnd", VLC_VAR_INTEGER);
 #endif
 #ifdef __APPLE__
@@ -910,7 +910,7 @@ void libvlc_media_player_set_hwnd( libvlc_media_player_t *p_mi,
                                    void *drawable )
 {
     assert (p_mi != NULL);
-#if defined (WIN32) || defined (__OS2__)
+#if defined (_WIN32) || defined (__OS2__)
     var_SetString (p_mi, "window",
                    (drawable != NULL) ? "embed-hwnd,any" : "");
     var_SetInteger (p_mi, "drawable-hwnd", (uintptr_t)drawable);
@@ -925,7 +925,7 @@ void libvlc_media_player_set_hwnd( libvlc_media_player_t *p_mi,
 void *libvlc_media_player_get_hwnd( libvlc_media_player_t *p_mi )
 {
     assert (p_mi != NULL);
-#if defined (WIN32) || defined (__OS2__)
+#if defined (_WIN32) || defined (__OS2__)
     return (void *)(uintptr_t)var_GetInteger (p_mi, "drawable-hwnd");
 #else
     return NULL;
index d2bdbafc79e30553a32d103effdcdad2e63f2180..e46185905547070f20cd3da508479db2bedb384f 100644 (file)
@@ -142,7 +142,7 @@ static int Open( vlc_object_t *p_this )
     }
     else psz_name = ToLocaleDup( p_access->psz_filepath );
 
-#if defined( WIN32 ) || defined( __OS2__ )
+#if defined( _WIN32 ) || defined( __OS2__ )
     if( psz_name[0] && psz_name[1] == ':' &&
         psz_name[2] == '\\' && psz_name[3] == '\0' ) psz_name[2] = '\0';
 #endif
index 2798b5bfc34c5f2f8767ff04f38e81a3a04c03fa..f929315f134fd0cda8902671cb53bd81c78d9e3e 100644 (file)
@@ -40,7 +40,7 @@
 #ifdef HAVE_UNISTD_H
 #   include <unistd.h>
 #   include <fcntl.h>
-#elif defined( WIN32 )
+#elif defined( _WIN32 )
 #   include <io.h>
 #endif
 
index 71875f747605cd206531ae127d2d26352d89ab91..2de87408a2a61a86360b7c0b2102bede0531cc86 100644 (file)
@@ -247,7 +247,7 @@ vlc_module_begin ()
                   "cable", "dvb-c", "cqam", "isdb-c",
                   "satellite", "dvb-s", "dvb-s2", "isdb-s",
                   "terrestrial", "dvb-t", "dvb-t2", "isdb-t", "atsc"
-#ifdef WIN32
+#ifdef _WIN32
                   ,"dvbt"
 #endif
                  )
@@ -261,7 +261,7 @@ vlc_module_begin ()
         change_safe ()
     add_bool ("dvb-budget-mode", false, BUDGET_TEXT, BUDGET_LONGTEXT, true)
 #endif
-#ifdef WIN32
+#ifdef _WIN32
     add_integer ("dvb-adapter", -1, ADAPTER_TEXT, ADAPTER_LONGTEXT, true)
         change_safe ()
     add_string ("dvb-network-name", "", NAME_TEXT, NAME_LONGTEXT, true)
@@ -403,7 +403,7 @@ vlc_module_begin ()
     add_integer ("dvb-tone", -1, TONE_TEXT, TONE_LONGTEXT, true)
         change_integer_list (auto_off_on_vlc, auto_off_on_user)
 #endif
-#ifdef WIN32
+#ifdef _WIN32
     add_integer ("dvb-network-id", 0, NETID_TEXT, NETID_TEXT, true)
     add_integer ("dvb-azimuth", 0, AZIMUTH_TEXT, AZIMUTH_LONGTEXT, true)
     add_integer ("dvb-elevation", 0, ELEVATION_TEXT, ELEVATION_LONGTEXT, true)
index 91dff44bc6ea7be2519407cd92e39dacfce3edf1..508a93560a1768bbf85a39a756f62421e40c70dd 100644 (file)
@@ -36,7 +36,7 @@
 #include <sys/types.h>
 #ifdef HAVE_UNISTD_H
 #   include <unistd.h>
-#elif defined( WIN32 )
+#elif defined( _WIN32 )
 #   include <io.h>
 #endif
 
index 6f8ed870221e4cae239d7d8d8ff77e7667d5cf12..13aaa3d5bda6f374bbc344c964b585b398db1549 100644 (file)
@@ -204,7 +204,7 @@ static int Open( vlc_object_t *p_this )
     else
         psz_file = strdup( p_demux->psz_file );
 
-#if defined( WIN32 ) || defined( __OS2__ )
+#if defined( _WIN32 ) || defined( __OS2__ )
     if( psz_file != NULL )
     {
         /* Remove trailing backslash, otherwise dvdnav_open will fail */
index 79d83041d5b870dfed4c2506340147f7ca5bdfc9..a239053f0c3183029d46d394127dc5ad4f07c721 100644 (file)
@@ -179,7 +179,7 @@ static int Open( vlc_object_t *p_this )
     else
         psz_file = strdup( p_demux->psz_file );
 
-#if defined( WIN32 ) || defined( __OS2__ )
+#if defined( _WIN32 ) || defined( __OS2__ )
     if( psz_file != NULL )
     {
         size_t flen = strlen( psz_file );
index a46a31b093c1970978196473a4be809a17f43eb1..8e00b3d94f0bf1aede33334ff5e359d9259e7f35 100644 (file)
@@ -44,7 +44,7 @@
 #   include <linux/magic.h>
 #endif
 
-#if defined( WIN32 )
+#if defined( _WIN32 )
 #   include <io.h>
 #   include <ctype.h>
 #   include <shlwapi.h>
@@ -58,7 +58,7 @@
 #include <vlc_input.h>
 #include <vlc_access.h>
 #include <vlc_dialog.h>
-#ifdef WIN32
+#ifdef _WIN32
 # include <vlc_charset.h>
 #endif
 #include <vlc_fs.h>
@@ -72,7 +72,7 @@ struct access_sys_t
     bool b_pace_control;
 };
 
-#if !defined (WIN32) && !defined (__OS2__)
+#if !defined (_WIN32) && !defined (__OS2__)
 static bool IsRemote (int fd)
 {
 #if defined (HAVE_FSTATVFS) && defined (MNT_LOCAL)
@@ -109,7 +109,7 @@ static bool IsRemote (int fd)
 }
 # define IsRemote(fd,path) IsRemote(fd)
 
-#else /* WIN32 || __OS2__ */
+#else /* _WIN32 || __OS2__ */
 static bool IsRemote (const char *path)
 {
 # if !defined(__OS2__) && !VLC_WINSTORE_APP
@@ -333,7 +333,7 @@ static ssize_t StreamRead (access_t *p_access, uint8_t *p_buffer, size_t i_len)
     access_sys_t *p_sys = p_access->p_sys;
     int fd = p_sys->fd;
 
-#if !defined (WIN32) && !defined (__OS2__)
+#if !defined (_WIN32) && !defined (__OS2__)
     ssize_t val = net_Read (p_access, fd, NULL, p_buffer, i_len, false);
 #else
     ssize_t val = read (fd, p_buffer, i_len);
index e29ac30c02be7690171ac5ffa59e4d143b88e219..9e02630db2b9c15c83961a5c86ca47fbc07cf7a2 100644 (file)
@@ -52,7 +52,7 @@
 #include <assert.h>
 
 
-#if defined( WIN32 )
+#if defined( _WIN32 )
 #   include <winsock2.h>
 #endif
 
index b8c5394661fa5576d66b5615fe3bf64daa8c3f87..18dac00ea7c692553a53aeafe075f94a96b10ee0 100644 (file)
@@ -154,7 +154,7 @@ void *rtp_dgram_thread (void *opaque)
  */
 void *rtp_stream_thread (void *opaque)
 {
-#ifndef WIN32
+#ifndef _WIN32
     demux_t *demux = opaque;
     demux_sys_t *sys = demux->p_sys;
     int fd = sys->fd;
index 8ab5d38336c02274a2307688e9ea84587563ebdc..1f8de38d918231e7c58b80661f9add1f548ed315 100644 (file)
@@ -39,7 +39,7 @@
 
 #include <gcrypt.h>
 
-#ifdef WIN32
+#ifdef _WIN32
 # include <winsock2.h>
 #else
 # include <netinet/in.h>
index 8340306e8546a3a360414c210183a734b7d346fa..12fb132d2c7cb885ce451d379ba0e1fd972044bd 100644 (file)
@@ -42,7 +42,7 @@
 #define FPS_LONGTEXT N_( \
     "Desired frame rate for the capture." )
 
-#ifdef WIN32
+#ifdef _WIN32
 #define FRAGS_TEXT N_("Capture fragment size")
 #define FRAGS_LONGTEXT N_( \
     "Optimize the capture by fragmenting the screen in chunks " \
@@ -86,7 +86,7 @@
 static int  Open ( vlc_object_t * );
 static void Close( vlc_object_t * );
 
-#ifdef WIN32
+#ifdef _WIN32
 #   define SCREEN_FPS 1
 #else
 #   define SCREEN_FPS 5
@@ -114,7 +114,7 @@ vlc_module_begin ()
     add_loadfile( "screen-mouse-image", "", MOUSE_TEXT, MOUSE_LONGTEXT, true )
 #endif
 
-#ifdef WIN32
+#ifdef _WIN32
     add_integer( "screen-fragment-size", 0, FRAGS_TEXT, FRAGS_LONGTEXT, true )
 #endif
 
index 670457455204e743bcbabdbeb4e2fb0a5a470abe..1e681aa276f765f33080e9ec8d893993a17d17f9 100644 (file)
@@ -29,7 +29,7 @@
 #endif
 
 #include <errno.h>
-#ifdef WIN32
+#ifdef _WIN32
 #   include <fcntl.h>
 #   include <sys/stat.h>
 #   include <io.h>
@@ -93,7 +93,7 @@ struct access_sys_t
     int i_smb;
 };
 
-#ifdef WIN32
+#ifdef _WIN32
 static void Win32AddConnection( access_t *, char *, char *, char *, char * );
 #else
 static void smb_auth( const char *srv, const char *shr, char *wg, int wglen,
@@ -179,7 +179,7 @@ static int Open( vlc_object_t *p_this )
     if( !psz_domain ) psz_domain = var_InheritString( p_access, "smb-domain" );
     if( psz_domain && !*psz_domain ) { free( psz_domain ); psz_domain = NULL; }
 
-#ifdef WIN32
+#ifdef _WIN32
     if( psz_user )
         Win32AddConnection( p_access, psz_location, psz_user, psz_pwd, psz_domain);
     i_ret = asprintf( &psz_uri, "//%s", psz_location );
@@ -200,7 +200,7 @@ static int Open( vlc_object_t *p_this )
     if( i_ret == -1 )
         return VLC_ENOMEM;
 
-#ifndef WIN32
+#ifndef _WIN32
     if( smbc_init( smb_auth, 0 ) )
     {
         free( psz_uri );
@@ -343,7 +343,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
     return VLC_SUCCESS;
 }
 
-#ifdef WIN32
+#ifdef _WIN32
 static void Win32AddConnection( access_t *p_access, char *psz_path,
                                 char *psz_user, char *psz_pwd,
                                 char *psz_domain )
@@ -387,4 +387,4 @@ static void Win32AddConnection( access_t *p_access, char *psz_path,
         msg_Dbg( p_access, "failed to connect to %s", psz_remote );
     }
 }
-#endif // WIN32
+#endif // _WIN32
index 270f63838bab2857d8335e7aab6e411f482c0213..17ce5edd9dd1fdca1f354df932301b5eaf1f2a94 100644 (file)
@@ -73,7 +73,7 @@
 #elif defined( HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H )
 #   include <sys/cdio.h>
 #   include <sys/cdrio.h>
-#elif defined( WIN32 )
+#elif defined( _WIN32 )
 #   include <windows.h>
 #   include <winioctl.h>
 #elif defined (__linux__)
@@ -97,7 +97,7 @@ vcddev_t *ioctl_Open( vlc_object_t *p_this, const char *psz_dev )
     int i_ret;
     int b_is_file;
     vcddev_t *p_vcddev;
-#if !defined( WIN32 ) && !defined( __OS2__ )
+#if !defined( _WIN32 ) && !defined( __OS2__ )
     struct stat fileinfo;
 #endif
 
@@ -116,7 +116,7 @@ vcddev_t *ioctl_Open( vlc_object_t *p_this, const char *psz_dev )
     /*
      *  Check if we are dealing with a device or a file (vcd image)
      */
-#if defined( WIN32 ) || defined( __OS2__ )
+#if defined( _WIN32 ) || defined( __OS2__ )
     if( (strlen( psz_dev ) == 2 && psz_dev[1] == ':') )
     {
         b_is_file = 0;
@@ -144,7 +144,7 @@ vcddev_t *ioctl_Open( vlc_object_t *p_this, const char *psz_dev )
          *  open the vcd device
          */
 
-#ifdef WIN32
+#ifdef _WIN32
         i_ret = win32_vcd_open( p_this, psz_dev, p_vcddev );
 #elif defined( __OS2__ )
         i_ret = os2_vcd_open( p_this, psz_dev, p_vcddev );
@@ -189,7 +189,7 @@ void ioctl_Close( vlc_object_t * p_this, vcddev_t *p_vcddev )
      *  vcd device mode
      */
 
-#ifdef WIN32
+#ifdef _WIN32
     if( p_vcddev->h_device_handle )
         CloseHandle( p_vcddev->h_device_handle );
 #elif defined( __OS2__ )
@@ -296,7 +296,7 @@ int ioctl_GetTracksMap( vlc_object_t *p_this, const vcddev_t *p_vcddev,
 
         darwin_freeTOC( pTOC );
 
-#elif defined( WIN32 )
+#elif defined( _WIN32 )
         DWORD dwBytesReturned;
         CDROM_TOC cdrom_toc;
 
@@ -547,7 +547,7 @@ int ioctl_ReadSectors( vlc_object_t *p_this, const vcddev_t *p_vcddev,
             goto error;
         }
 
-#elif defined( WIN32 )
+#elif defined( _WIN32 )
         DWORD dwBytesReturned;
         RAW_READ_INFO cdrom_raw;
 
@@ -998,7 +998,7 @@ static int darwin_getNumberOfTracks( CDTOC *pTOC, int i_descriptors )
 }
 #endif /* __APPLE__ */
 
-#if defined( WIN32 )
+#if defined( _WIN32 )
 /*****************************************************************************
  * win32_vcd_open: open vcd drive
  *****************************************************************************
@@ -1024,7 +1024,7 @@ static int win32_vcd_open( vlc_object_t * p_this, const char *psz_dev,
     return (p_vcddev->h_device_handle == NULL) ? -1 : 0;
 }
 
-#endif /* WIN32 */
+#endif /* _WIN32 */
 
 #ifdef __OS2__
 /*****************************************************************************
@@ -1217,7 +1217,7 @@ static int CdTextRead( vlc_object_t *p_object, const vcddev_t *p_vcddev,
     VLC_UNUSED( pi_buffer );
     return -1;
 }
-#elif defined( WIN32 )
+#elif defined( _WIN32 )
 static int CdTextRead( vlc_object_t *p_object, const vcddev_t *p_vcddev,
                        uint8_t **pp_buffer, int *pi_buffer )
 {
index 2ae806bf1fb00d240ff250b6b543e59854b8363b..bfef07e5795772aff51602fa270104b393df8ff8 100644 (file)
@@ -36,7 +36,7 @@ struct vcddev_s
 
     /* Section used in vcd device mode */
 
-#ifdef WIN32
+#ifdef _WIN32
     HANDLE h_device_handle;                         /* vcd device descriptor */
 #elif defined( __OS2__ )
     HFILE  hcd;                                     /* vcd device descriptor */
@@ -70,7 +70,7 @@ struct vcddev_s
 #define CD_MAX_TRACK_NO 99
 #endif
 
-#if defined( WIN32 )
+#if defined( _WIN32 )
 
 /* Win32 DeviceIoControl specifics */
 #ifndef MAXIMUM_NUMBER_TRACKS
@@ -127,7 +127,7 @@ typedef struct _CDROM_READ_TOC_EX {
 #define MINIMUM_CDROM_READ_TOC_EX_SIZE    2
 #define CDROM_READ_TOC_EX_FORMAT_CDTEXT   0x05
 
-#endif /* WIN32 */
+#endif /* _WIN32 */
 
 #ifdef __OS2__
 #pragma pack( push, 1 )
@@ -192,7 +192,7 @@ static void   CloseVCDImage( vlc_object_t *, struct vcddev_s * );
 static CDTOC *darwin_getTOC( vlc_object_t *, const struct vcddev_s * );
 static int    darwin_getNumberOfTracks( CDTOC *, int );
 
-#elif defined( WIN32 )
+#elif defined( _WIN32 )
 static int    win32_vcd_open( vlc_object_t *, const char *, struct vcddev_s *);
 
 #elif defined( __OS2__ )
index 817f56590ac8f848e8a56b3ab49a51991aa28c61..d7023239659d2db548f7ac4cffeed429da8570fd 100644 (file)
@@ -123,7 +123,7 @@ static int Open( vlc_object_t *p_this )
         }
     }
 
-#if defined( WIN32 ) || defined( __OS2__ )
+#if defined( _WIN32 ) || defined( __OS2__ )
     if( psz_dup[0] && psz_dup[1] == ':' &&
         psz_dup[2] == '\\' && psz_dup[3] == '\0' ) psz_dup[2] = '\0';
 #endif
index 517264a4b547bd00986fec89b1d7c0ef00ab02ee..b2de5a7f8b1770e9e0814c941b909bf67c71a521 100644 (file)
@@ -555,7 +555,7 @@ VCDParse( access_t * p_access, /*out*/ vcdinfo_itemid_t * p_itemid,
       p_itemid->num = 0;
     }
 
-#ifdef WIN32
+#ifdef _WIN32
     /* On Win32 we want the VCD access plugin to be explicitly requested,
      * we end up with lots of problems otherwise */
     if( !p_access->psz_access || !*p_access->psz_access ) return NULL;
index ddf1a96573931795ada2eacf2bf577448e6a7eb0..6cf9c4466b16fe1c243faec289eb1e1e0ec2904b 100644 (file)
@@ -50,7 +50,7 @@ See http://www.vdr-wiki.de/ and http://www.tvdr.de/ for more information.
 #include <fcntl.h>
 #ifdef HAVE_UNISTD_H
 #   include <unistd.h>
-#elif defined( WIN32 )
+#elif defined( _WIN32 )
 #   include <io.h>
 #endif
 
index 7d457baab34180639d97e82ffdf53d69df5cc6e2..63ec641bfb053e0622a089198ca4735fac4222de 100644 (file)
@@ -24,7 +24,7 @@
 
 #ifndef ZCALLBACK
 
-#if (defined(WIN32) || defined (WINDOWS) || defined (_WINDOWS)) && defined(CALLBACK) && defined (USEWINDOWS_CALLBACK)
+#if (defined(_WIN32) || defined (WINDOWS) || defined (_WINDOWS)) && defined(CALLBACK) && defined (USEWINDOWS_CALLBACK)
 #define ZCALLBACK CALLBACK
 #else
 #define ZCALLBACK
index b247937c8078a94447eb2f047a01590b1aee3381..1b7065f6dafeb5e0929285ad820964f873f0ded8 100644 (file)
@@ -58,7 +58,7 @@ extern "C" {
 #endif
 
 #if defined(STRICTUNZIP) || defined(STRICTZIPUNZIP)
-/* like the STRICT of WIN32, we define a pointer that cannot be converted
+/* like the STRICT of _WIN32, we define a pointer that cannot be converted
     from (void*) without cast */
 typedef struct TagunzFile__ { int unused; } unzFile__;
 typedef unzFile__ *unzFile;
index 07ecaafe1f4517fd0a4f8e280d03b1079a7255c2..a1f529faf0e7d708a47c0e0d45eafbf74614cf4e 100644 (file)
 #include <vlc_strings.h>
 #include <vlc_dialog.h>
 
-#if defined( WIN32 ) || defined( __OS2__ )
+#if defined( _WIN32 ) || defined( __OS2__ )
 #   include <io.h>
 #endif
 
-#ifndef WIN32
+#ifndef _WIN32
 #   include <unistd.h>
 #endif
 
@@ -153,7 +153,7 @@ static int Open( vlc_object_t *p_this )
     else
     if( !strcmp( p_access->psz_path, "-" ) )
     {
-#if defined( WIN32 ) || defined( __OS2__ )
+#if defined( _WIN32 ) || defined( __OS2__ )
         setmode (STDOUT_FILENO, O_BINARY);
 #endif
         fd = vlc_dup (STDOUT_FILENO);
index d996d749279694007e17d2158912c6ed7ec60c0e..54aadd20fd4b720050544aa015f03f6bd8c3ec15 100644 (file)
@@ -42,7 +42,7 @@
 #   include <unistd.h>
 #endif
 
-#ifdef WIN32
+#ifdef _WIN32
 #   include <winsock2.h>
 #   include <ws2tcpip.h>
 #else
index 40677b199ce0bd7ee9a5401c9120f0954eb9d99e..0e67c88e3b7ea20bb0644c3eb8958f77e487e5a8 100644 (file)
@@ -32,7 +32,7 @@
 #include <vlc_common.h>
 #include <vlc_codec.h>
 
-#ifndef WIN32
+#ifndef _WIN32
 #    define LOADER
 #else
 #   include <objbase.h>
index b507dbc45ec5f09572fccee98ac0d7b6d21c406f..6595f70acb2a76809e54851c1d0a2f27dffdc3bf 100644 (file)
@@ -34,7 +34,7 @@
 #include <vlc_codec.h>
 #include <vlc_codecs.h>
 
-#ifdef WIN32
+#ifdef _WIN32
 #   include <objbase.h>
 #   include <vlc_charset.h>
 #endif
index 50cd5e88c093aa3c038f99e8c7eb5a92e021c880..d69b97065288bf67407d7e5bf93c56da027513e4 100644 (file)
@@ -38,7 +38,7 @@ const GUID MEDIASUBTYPE_RGB24;
 const GUID MEDIASUBTYPE_RGB565;
 
 
-#ifndef WIN32
+#ifndef _WIN32
 void* CoTaskMemAlloc(unsigned long cb);
 void CoTaskMemFree(void* cb);
 #endif
index 4003174a204ce4bb8d43b4ab320c4f267caeb71c..49d5ab146065198b3d1ab8fee992c5f4f1980076 100644 (file)
@@ -36,7 +36,7 @@
 #endif
 
 /* On Win32, we link statically */
-#ifdef WIN32
+#ifdef _WIN32
 # define FLUIDSYNTH_NOT_A_DLL
 #endif
 
index b32791c9781901ab12f1291a8e50993a1039dc6a..aa38f1b2f609072b6d003b46b7b4fd694dfebbd2 100644 (file)
@@ -42,7 +42,7 @@
 
 #include <ass/ass.h>
 
-#if defined(WIN32)
+#if defined(_WIN32)
 #   include <vlc_charset.h>
 #endif
 
@@ -219,7 +219,7 @@ static int Create( vlc_object_t *p_this )
 #endif
 
 #ifdef HAVE_FONTCONFIG
-#if defined(WIN32)
+#if defined(_WIN32)
     dialog_progress_bar_t *p_dialog =
         dialog_ProgressCreate( p_dec,
                                _("Building font cache"),
@@ -227,7 +227,7 @@ static int Create( vlc_object_t *p_this )
                                   "This should take less than a minute." ), NULL );
 #endif
     ass_set_fonts( p_renderer, psz_font, psz_family, true, NULL, 1 );  // setup default font/family
-#ifdef WIN32
+#ifdef _WIN32
     if( p_dialog )
     {
         dialog_ProgressSet( p_dialog, NULL, 1.0 );
index 31be9165522f19f949bd05c04a5590d0a613647b..76fa234e7d5f5978f11c5b484706f4de69c7b7c2 100644 (file)
@@ -162,7 +162,7 @@ typedef unsigned long long OMX_U64;
 /** OMX_S64 is a 64 bit signed quantity that is 64 bit word aligned */
 typedef signed long long OMX_S64;
 
-#elif defined(WIN32)
+#elif defined(_WIN32)
 
 /** OMX_U64 is a 64 bit unsigned quantity that is 64 bit word aligned */   
 typedef unsigned __int64  OMX_U64;
@@ -170,7 +170,7 @@ typedef unsigned __int64  OMX_U64;
 /** OMX_S64 is a 64 bit signed quantity that is 64 bit word aligned */
 typedef signed   __int64  OMX_S64;
 
-#else /* WIN32 */
+#else /* _WIN32 */
 
 /** OMX_U64 is a 64 bit unsigned quantity that is 64 bit word aligned */
 typedef unsigned long long OMX_U64;
@@ -178,7 +178,7 @@ typedef unsigned long long OMX_U64;
 /** OMX_S64 is a 64 bit signed quantity that is 64 bit word aligned */
 typedef signed long long OMX_S64;
 
-#endif /* WIN32 */
+#endif /* _WIN32 */
 #endif
 
 
index d4834d7208ff4a8b0b5470f98a1a9dbd51ee516d..885c758e7ca6c220cd7265c3196bfb91216e1929 100644 (file)
@@ -34,7 +34,7 @@
 #include <vlc_plugin.h>
 #include <vlc_codec.h>
 
-#if !defined (__APPLE__) && !defined(WIN32)
+#if !defined (__APPLE__) && !defined(_WIN32)
 # define LOADER 1
 #endif
 
@@ -79,7 +79,7 @@ static int           OpenAudio( decoder_t * );
 static int           OpenVideo( decoder_t * );
 
 static block_t       *DecodeAudio( decoder_t *, block_t ** );
-#ifndef WIN32
+#ifndef _WIN32
 static picture_t     *DecodeVideo( decoder_t *, block_t ** );
 #endif
 
@@ -144,7 +144,7 @@ struct decoder_sys_t
     unsigned int    InFrameSize;
     unsigned int    OutFrameSize;
 
-#ifndef WIN32
+#ifndef _WIN32
     /* Video */
     Component         (*FindNextComponent)
         ( Component prev, ComponentDescription* desc );
@@ -215,7 +215,7 @@ static const int pi_channels_maps[6] =
 };
 
 static int QTAudioInit( decoder_t * );
-#ifndef WIN32
+#ifndef _WIN32
 static int QTVideoInit( decoder_t * );
 #endif
 
@@ -666,7 +666,7 @@ static block_t *DecodeAudio( decoder_t *p_dec, block_t **pp_block )
  *****************************************************************************/
 static int OpenVideo( decoder_t *p_dec )
 {
-#ifndef WIN32
+#ifndef _WIN32
     decoder_sys_t *p_sys = malloc( sizeof( decoder_sys_t ) );
     if( !p_sys )
         return VLC_ENOMEM;
@@ -857,12 +857,12 @@ exit_error:
 
 #else
     VLC_UNUSED( p_dec );
-#endif /* !WIN32 */
+#endif /* !_WIN32 */
 
     return VLC_EGENERIC;
 }
 
-#ifndef WIN32
+#ifndef _WIN32
 /*****************************************************************************
  * DecodeVideo:
  *****************************************************************************/
@@ -951,7 +951,7 @@ static picture_t *DecodeVideo( decoder_t *p_dec, block_t **pp_block )
     block_Release( p_block );
     return p_pic;
 }
-#endif /* !WIN32 */
+#endif /* !_WIN32 */
 
 /*****************************************************************************
  * QTAudioInit:
@@ -1020,7 +1020,7 @@ static int QTAudioInit( decoder_t *p_dec )
     return VLC_SUCCESS;
 }
 
-#ifndef WIN32
+#ifndef _WIN32
 /*****************************************************************************
  * QTVideoInit:
  *****************************************************************************/
@@ -1092,4 +1092,4 @@ static int QTVideoInit( decoder_t *p_dec )
 
     return VLC_SUCCESS;
 }
-#endif /* !WIN32 */
+#endif /* !_WIN32 */
index 6e0a3644502520038f13557d874ad9999f22aa73..4300555b07b3cf4e867a09edbddf0a694e57b27c 100644 (file)
@@ -33,7 +33,7 @@
 #include <vlc_plugin.h>
 #include <vlc_interface.h>
 
-#ifdef WIN32
+#ifdef _WIN32
 #define QUIET_TEXT N_("Do not open a DOS command box interface")
 #define QUIET_LONGTEXT N_( \
     "By default the dummy interface plugin will start a DOS command box. " \
@@ -49,7 +49,7 @@ vlc_module_begin ()
     set_description( N_("Dummy interface") )
     set_capability( "interface", 0 )
     set_callbacks( Open, NULL )
-#ifdef WIN32
+#ifdef _WIN32
     add_bool( "dummy-quiet", false, QUIET_TEXT, QUIET_LONGTEXT, false )
 #endif
 vlc_module_end ()
@@ -61,7 +61,7 @@ static int Open( vlc_object_t *p_this )
 {
     intf_thread_t *p_intf = (intf_thread_t*) p_this;
 
-#ifdef WIN32
+#ifdef _WIN32
     bool b_quiet;
     b_quiet = var_InheritBool( p_intf, "dummy-quiet" );
     if( !b_quiet )
index 62ab7a547c7870972224d865faf235ef2c866e14..b67ec2f0791d6a980b0c3c15c36bb500c845a694 100644 (file)
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * win32.c: Global-Hotkey WIN32 handling for vlc
+ * win32.c: Global-Hotkey _WIN32 handling for vlc
  *****************************************************************************
  * Copyright (C) 2008-2009 the VideoLAN team
  *
index e8ede5f2442028c7891afe73425103e3a63a587d..ee9d1838698747d94ba7d5f8bac62f83fa3fbbf9 100644 (file)
@@ -58,7 +58,7 @@
 #    define PF_LOCAL PF_UNIX
 #endif
 
-#if defined(AF_LOCAL) && ! defined(WIN32)
+#if defined(AF_LOCAL) && ! defined(_WIN32)
 #    include <sys/un.h>
 #endif
 
@@ -132,7 +132,7 @@ struct intf_sys_t
     input_thread_t    *p_input;
     bool              b_input_buffering;
 
-#ifdef WIN32
+#ifdef _WIN32
     HANDLE hConsoleIn;
     bool b_quiet;
 #endif
@@ -173,7 +173,7 @@ static void msg_rc( intf_thread_t *p_intf, const char *psz_fmt, ... )
 #define HOST_LONGTEXT N_("Accept commands over a socket rather than stdin. " \
             "You can set the address and port the interface will bind to." )
 
-#ifdef WIN32
+#ifdef _WIN32
 #define QUIET_TEXT N_("Do not open a DOS command box interface")
 #define QUIET_LONGTEXT N_( \
     "By default the rc interface plugin will start a DOS command box. " \
@@ -189,7 +189,7 @@ vlc_module_begin ()
     set_description( N_("Remote control interface") )
     add_bool( "rc-show-pos", false, POS_TEXT, POS_LONGTEXT, true )
 
-#ifdef WIN32
+#ifdef _WIN32
     add_bool( "rc-quiet", false, QUIET_TEXT, QUIET_LONGTEXT, false )
 #else
 #if defined (HAVE_ISATTY)
@@ -202,7 +202,7 @@ vlc_module_begin ()
     set_capability( "interface", 20 )
 
     set_callbacks( Activate, Deactivate )
-#ifdef WIN32
+#ifdef _WIN32
     add_shortcut( "rc" )
 #endif
 vlc_module_end ()
@@ -218,7 +218,7 @@ static int Activate( vlc_object_t *p_this )
     char *psz_host, *psz_unix_path = NULL;
     int  *pi_socket = NULL;
 
-#ifndef WIN32
+#ifndef _WIN32
 #if defined(HAVE_ISATTY)
     /* Check that stdin is a TTY */
     if( !var_InheritBool( p_intf, "rc-fake-tty" ) && !isatty( 0 ) )
@@ -293,7 +293,7 @@ static int Activate( vlc_object_t *p_this )
         pi_socket[1] = -1;
 #endif /* AF_LOCAL */
     }
-#endif /* !WIN32 */
+#endif /* !_WIN32 */
 
     if( ( pi_socket == NULL ) &&
         ( psz_host = var_InheritString( p_intf, "rc-host" ) ) != NULL )
@@ -335,7 +335,7 @@ static int Activate( vlc_object_t *p_this )
     /* Non-buffered stdout */
     setvbuf( stdout, (char *)NULL, _IOLBF, 0 );
 
-#ifdef WIN32
+#ifdef _WIN32
     p_sys->b_quiet = var_InheritBool( p_intf, "rc-quiet" );
     if( !p_sys->b_quiet )
 #endif
@@ -376,7 +376,7 @@ static void Deactivate( vlc_object_t *p_this )
         net_Close( p_sys->i_socket );
     if( p_sys->psz_unix_path != NULL )
     {
-#if defined(AF_LOCAL) && !defined(WIN32)
+#if defined(AF_LOCAL) && !defined(_WIN32)
         unlink( p_sys->psz_unix_path );
 #endif
         free( p_sys->psz_unix_path );
@@ -473,7 +473,7 @@ static void *Run( void *data )
 
     p_buffer[0] = 0;
 
-#ifdef WIN32
+#ifdef _WIN32
     /* Get the file descriptor of the console input */
     p_intf->p_sys->hConsoleIn = GetStdHandle(STD_INPUT_HANDLE);
     if( p_intf->p_sys->hConsoleIn == INVALID_HANDLE_VALUE )
@@ -1788,7 +1788,7 @@ static int updateStatistics( intf_thread_t *p_intf, input_item_t *p_item )
     return VLC_SUCCESS;
 }
 
-#ifdef WIN32
+#ifdef _WIN32
 static bool ReadWin32( intf_thread_t *p_intf, char *p_buffer, int *pi_size )
 {
     INPUT_RECORD input_record;
@@ -1858,7 +1858,7 @@ bool ReadCommand( intf_thread_t *p_intf, char *p_buffer, int *pi_size )
 {
     int i_read = 0;
 
-#ifdef WIN32
+#ifdef _WIN32
     if( p_intf->p_sys->i_socket == -1 && !p_intf->p_sys->b_quiet )
         return ReadWin32( p_intf, p_buffer, pi_size );
     else if( p_intf->p_sys->i_socket == -1 )
index 7238ff251f0f18f72098e421f6fda77d8306b4b0..88b9d03241b72374a4aa87fd8bb99dd927a1f481 100644 (file)
@@ -173,7 +173,7 @@ static int Open( vlc_object_t * p_this )
                     {
                         s_filename = s_path + DIR_SEP_CHAR + psz_file;
 
-#if defined(WIN32) || defined(__OS2__)
+#if defined(_WIN32) || defined(__OS2__)
                         if (!strcasecmp(s_filename.c_str(), p_demux->psz_file))
 #else
                         if (!s_filename.compare(p_demux->psz_file))
index 033f55af8ef26d0a7bd5d6f7b2942109827bd445..cae528dba4696ebeee85155fc9839fa6b3f5a26d 100644 (file)
@@ -33,7 +33,7 @@
 #include <vlc_demux.h>
 #include <vlc_url.h>
 
-#if defined( WIN32 ) || defined( __OS2__ )
+#if defined( _WIN32 ) || defined( __OS2__ )
 # include <ctype.h>                          /* isalpha */
 #endif
 #include <assert.h>
@@ -203,7 +203,7 @@ char *ProcessMRL( const char *psz_mrl, const char *psz_prefix )
     /* FIXME: that's wrong if the playlist is not a local file */
     if( *psz_mrl == DIR_SEP_CHAR )
         goto uri;
-#if defined( WIN32 ) || defined( __OS2__ )
+#if defined( _WIN32 ) || defined( __OS2__ )
     /* Drive letter (this assumes URL scheme are not a single character) */
     if( isalpha((unsigned char)psz_mrl[0]) && psz_mrl[1] == ':' )
         goto uri;
index 5fae5ac7c9af6bf5c30b63c834a7561c66a40858..740a15efa54bafe5c158c56d28600eb7948785a9 100644 (file)
@@ -36,7 +36,7 @@
 #include <vlc_fs.h>
 #include <vlc_charset.h>
 
-#if defined( WIN32 )
+#if defined( _WIN32 )
 #   include <mmsystem.h>
 #elif defined(__linux__)
 #   include <sys/types.h>
@@ -123,7 +123,7 @@ static int intf_Eject( vlc_object_t *p_this, const char *psz_device )
 {
     VLC_UNUSED(p_this);
 
-#if defined(WIN32)
+#if defined(_WIN32)
     MCI_OPEN_PARMS op;
     DWORD i_flags;
     TCHAR psz_drive[4];
index 2e9fcb9f4b24ad1317e3cd301ed7232f48efd193..0acf518295ffe75b1a4d0517cf02456ec10d6a1d 100644 (file)
@@ -38,7 +38,7 @@
 #include <vlc_intf_strings.h>
 #include <vlc_modules.h>
 #include <vlc_plugin.h>
-#ifdef WIN32
+#ifdef _WIN32
   #include <vlc_charset.h> /* FromWide for Win32 */
 #endif
 
@@ -338,7 +338,7 @@ DiscOpenPanel::DiscOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
     ui.deviceCombo->setToolTip( qtr(I_DEVICE_TOOLTIP) );
     ui.deviceCombo->setInsertPolicy( QComboBox::InsertAtTop );
 
-#if !defined( WIN32 ) && !defined( __OS2__ )
+#if !defined( _WIN32 ) && !defined( __OS2__ )
     char const * const ppsz_discdevices[] = {
         "sr*",
         "sg*",
@@ -374,7 +374,7 @@ DiscOpenPanel::DiscOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
     updateButtons();
 }
 
-#ifdef WIN32 /* Disc drives probing for Windows */
+#ifdef _WIN32 /* Disc drives probing for Windows */
 void DiscOpenPanel::onFocus()
 {
     ui.deviceCombo->clear();
@@ -470,7 +470,7 @@ void DiscOpenPanel::clear()
     m_discType = None;
 }
 
-#if defined( WIN32 ) || defined( __OS2__ )
+#if defined( _WIN32 ) || defined( __OS2__ )
     #define setDrive( psz_name ) {\
     int index = ui.deviceCombo->findText( qfu( psz_name ) ); \
     if( index != -1 ) ui.deviceCombo->setCurrentIndex( index );}
@@ -766,7 +766,7 @@ void CaptureOpenPanel::initialize()
 
 #define CuMRL( widget, slot ) CONNECT( widget , slot , this, updateMRL() );
 
-#ifdef WIN32
+#ifdef _WIN32
     /*********************
      * DirectShow Stuffs *
      *********************/
@@ -803,7 +803,7 @@ void CaptureOpenPanel::initialize()
     CuMRL( dshowVSizeLine, textChanged( const QString& ) );
     configList << "dshow-vdev" << "dshow-adev" << "dshow-size";
     }
-#else /* WIN32 */
+#else /* _WIN32 */
     /*******
      * V4L2*
      *******/
@@ -1026,7 +1026,7 @@ void CaptureOpenPanel::initialize()
                << "dvb-bandwidth";
     }
 
-#ifndef WIN32
+#ifndef _WIN32
     /************
      * PVR      *
      ************/
@@ -1143,7 +1143,7 @@ void CaptureOpenPanel::updateMRL()
             ui.deviceCombo->currentIndex() ).toInt();
     switch( i_devicetype )
     {
-#ifdef WIN32
+#ifdef _WIN32
     case DSHOW_DEVICE:
         fileList << "dshow://";
         mrl+= " :dshow-vdev=" +
index 218c875e3565e57c0eb3c8d5c3a69092fdbafccd..48eeb6e534cc4d5b8bab759253c6f3f7484589a8 100644 (file)
@@ -174,7 +174,7 @@ public:
     virtual ~DiscOpenPanel();
     virtual void clear() ;
     virtual void accept() ;
-#if defined( WIN32 ) || defined( __OS2__ )
+#if defined( _WIN32 ) || defined( __OS2__ )
     virtual void onFocus();
 #endif
 private:
@@ -204,7 +204,7 @@ private:
     QString advMRL;
     QStringList configList;
     QDialog *adv;
-#ifdef WIN32
+#ifdef _WIN32
     StringListConfigControl *vdevDshowW, *adevDshowW;
     QLineEdit *dshowVSizeLine;
 #else
index bf4e3a95121936e5f6c68490720abb1c5516f242..1bf57c25ff5d79f65a334b344233e709778fe33a 100644 (file)
@@ -687,7 +687,7 @@ void ModuleListConfigControl::finish( bool bycat )
                 {
                     checkbox_lists( "Web", "Lua HTTP", "http" );
                     checkbox_lists( "Telnet", "Lua Telnet", "telnet" );
-#ifndef WIN32
+#ifndef _WIN32
                     checkbox_lists( "Console", "Lua CLI", "cli" );
 #endif
                 }
index 47170c857d757182584d69bd88d3d612f7cd1cf0..c1ff6ed0127ee9cc98a7af44a99f6f964b8e0a58 100644 (file)
@@ -48,7 +48,7 @@
 
 #define ICON_HEIGHT 64
 
-#ifdef WIN32
+#ifdef _WIN32
 # include <vlc_windows_interfaces.h>
 #endif
 #include <vlc_modules.h>
@@ -228,7 +228,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
             CONFIG_BOOL( "video-deco", windowDecorations );
             CONFIG_GENERIC( "vout", StringList, ui.voutLabel, outputModule );
 
-#ifdef WIN32
+#ifdef _WIN32
             CONFIG_GENERIC( "directx-device", StringList, ui.dxDeviceLabel,
                             dXdisplayDevice );
             CONFIG_BOOL( "directx-hw-yuv", hwYUVBox );
@@ -290,7 +290,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
 
             /* Build if necessary */
             QGridLayout * outputAudioLayout = qobject_cast<QGridLayout *>(ui.outputAudioBox->layout());
-#ifdef WIN32
+#ifdef _WIN32
             audioControl( DirectX );
             optionWidgets["directxL" ] = DirectXLabel;
             optionWidgets["directxW" ] = DirectXDevice;
@@ -442,7 +442,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
                 free( psz_dvddiscpath );
                 free( psz_vcddiscpath );
             }
-#ifndef WIN32
+#ifndef _WIN32
             QStringList DVDDeviceComboBoxStringList = QStringList();
             DVDDeviceComboBoxStringList
                     << "dvd*" << "scd*" << "sr*" << "sg*" << "cd*";
@@ -471,7 +471,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
                 ui.live555TransportLabel->hide();
             }
             CONFIG_GENERIC( "avcodec-hw", StringList, ui.hwAccelLabel, hwAccelModule );
-#ifdef WIN32
+#ifdef _WIN32
             HINSTANCE hdxva2_dll = LoadLibrary(TEXT("DXVA2.DLL") );
             if( !hdxva2_dll )
                 ui.hwAccelModule->setEnabled( false );
@@ -526,7 +526,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
                     + qtr( "VLC skins website" )+ QString( "</a>." ) );
             ui.skinsLabel->setFont( italicFont );
 
-#ifdef WIN32
+#ifdef _WIN32
             BUTTONACT( ui.assoButton, assoDialog() );
 #else
             ui.assoButton->hide();
@@ -552,7 +552,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
 
             optionWidgets["skinRB"] = ui.skins;
             optionWidgets["qtRB"] = ui.qt;
-#if !defined( WIN32)
+#if !defined( _WIN32)
             ui.stylesCombo->addItem( qtr("System's default") );
             ui.stylesCombo->addItems( QStyleFactory::keys() );
             ui.stylesCombo->setCurrentIndex( ui.stylesCombo->findText(
@@ -615,7 +615,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
             ui.updatesDays->hide();
 #endif
             /* ONE INSTANCE options */
-#if !defined( WIN32 ) && !defined(__APPLE__) && !defined(__OS2__)
+#if !defined( _WIN32 ) && !defined(__APPLE__) && !defined(__OS2__)
             if( !module_exists( "dbus" ) )
                 ui.OneInterfaceBox->hide();
             else
@@ -704,7 +704,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
             control->insertIntoExistingGrid( gLayout, line );
             controls.append( control );
 
-#ifdef WIN32
+#ifdef _WIN32
             line++;
 
             p_config = config_FindConfig( VLC_OBJECT(p_intf), "qt-disable-volume-keys" );
@@ -750,7 +750,7 @@ void SPrefsPanel::updateAudioOptions( int number)
 {
     QString value = qobject_cast<QComboBox *>(optionWidgets["audioOutCoB"])
                                             ->itemData( number ).toString();
-#ifdef WIN32
+#ifdef _WIN32
     optionWidgets["directxW"]->setVisible( ( value == "directsound" ) );
     optionWidgets["directxL"]->setVisible( ( value == "directsound" ) );
 #elif defined( __OS2__ )
@@ -917,7 +917,7 @@ void SPrefsPanel::configML()
 #endif
 }
 
-#ifdef WIN32
+#ifdef _WIN32
 #include <QDialogButtonBox>
 #include "util/registry.hpp"
 
@@ -1115,5 +1115,5 @@ void SPrefsPanel::saveAsso()
     delete qvReg;
 }
 
-#endif /* WIN32 */
+#endif /* _WIN32 */
 
index d17249bc7692fb491ffea78ea8d8e4bcf6bc2f34..d6b19a70836a56262330663bd430834e5d2750cd 100644 (file)
@@ -37,7 +37,7 @@
 #include "ui/sprefs_subtitles.h"
 #include "ui/sprefs_interface.h"
 
-#ifdef WIN32
+#ifdef _WIN32
 # include "util/registry.hpp"
 #endif
 
@@ -70,7 +70,7 @@ class QRadioButton;
 class QCheckBox;
 class QString;
 
-#ifdef WIN32
+#ifdef _WIN32
 class QTreeWidgetItem;
 #endif
 
@@ -107,7 +107,7 @@ private:
     QStringList qs_filter;
     QButtonGroup *radioGroup;
 
-#ifdef WIN32
+#ifdef _WIN32
     QList<QTreeWidgetItem *> listAsso;
     bool addType( const char * psz_ext, QTreeWidgetItem*, QTreeWidgetItem*, QVLCRegistry* );
 #endif
@@ -117,7 +117,7 @@ private slots:
     void lastfm_Changed( int );
     void updateAudioOptions( int );
     void updateAudioVolume( int );
-#ifdef WIN32
+#ifdef _WIN32
     void assoDialog();
     void saveAsso();
 #endif
index 4b79d61d64340fe8ede39d31e42b4f8f20313077..5f5756decc3a96359037d6694ccfc6007e4212d6 100644 (file)
@@ -83,7 +83,7 @@ VLCProfileSelector::VLCProfileSelector( QWidget *_parent ): QWidget( _parent )
 inline void VLCProfileSelector::fillProfilesCombo()
 {
     QSettings settings(
-#ifdef WIN32
+#ifdef _WIN32
             QSettings::IniFormat,
 #else
             QSettings::NativeFormat,
@@ -159,7 +159,7 @@ void VLCProfileSelector::deleteProfile()
 void VLCProfileSelector::saveProfiles()
 {
     QSettings settings(
-#ifdef WIN32
+#ifdef _WIN32
             QSettings::IniFormat,
 #else
             QSettings::NativeFormat,
index fbec457336e94aa79d130467415975e0b094c48a..47e1b93c1646f17122bb9c4eb2cb1a8c495b0b54 100644 (file)
@@ -94,7 +94,7 @@ VLMDialog::VLMDialog( intf_thread_t *_p_intf ) : QVLCDialog( (QWidget*)_p_intf->
     date = new QDateTimeEdit( QDate::currentDate() );
     date->setAlignment( Qt::AlignRight );
     date->setCalendarPopup( true );
-#ifdef WIN32
+#ifdef _WIN32
     date->setDisplayFormat( "dd MM yyyy" );
 #else
     date->setDisplayFormat( "dd MMMM yyyy" );
index ad9165305b30f61637442b034a0a3971460f3c71..3799383155ba3ead46ea2e43c258ab2dd25187be 100644 (file)
@@ -134,7 +134,7 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
     /* Set the other interface settings */
     settings = getSettings();
 
-#ifdef WIN32
+#ifdef _WIN32
     /* Volume keys */
     p_intf->p_sys->disable_volume_keys = var_InheritBool( p_intf, "qt-disable-volume-keys" );
 #endif
@@ -168,7 +168,7 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
      ********************/
     MainInputManager::getInstance( p_intf );
 
-#ifdef WIN32
+#ifdef _WIN32
     himl = NULL;
     p_taskbl = NULL;
     taskbar_wmsg = RegisterWindowMessage(TEXT("TaskbarButtonCreated"));
@@ -269,7 +269,7 @@ MainInterface::~MainInterface()
     if( videoWidget )
         releaseVideoSlot();
 
-#ifdef WIN32
+#ifdef _WIN32
     if( himl )
         ImageList_Destroy( himl );
     if(p_taskbl)
@@ -355,7 +355,7 @@ void MainInterface::reloadPrefs()
 {
     i_notificationSetting = var_InheritInteger( p_intf, "qt-notification" );
     b_pauseOnMinimize = var_InheritBool( p_intf, "qt-pause-minimized" );
-#ifdef WIN32
+#ifdef _WIN32
     p_intf->p_sys->disable_volume_keys = var_InheritBool( p_intf, "qt-disable-volume-keys" );
 #endif
     if( !var_InheritBool( p_intf, "qt-fs-controller" ) && fullscreenControls )
@@ -1092,7 +1092,7 @@ void MainInterface::toggleUpdateSystrayMenu()
     else
     {
         /* Visible (possibly under other windows) */
-#ifdef WIN32
+#ifdef _WIN32
         /* check if any visible window is above vlc in the z-order,
          * but ignore the ones always on top
          * and the ones which can't be activated */
index 4c5b1fd5ec0f6b9a665c7f24d94f7d7753379f18..bb413fcb08c559f8f81caf68a1e38bc6e88e379c 100644 (file)
@@ -29,7 +29,7 @@
 
 #include "util/qvlcframe.hpp"
 
-#ifdef WIN32
+#ifdef _WIN32
  #include <vlc_windows_interfaces.h>
 #endif
 
@@ -93,7 +93,7 @@ public:
 protected:
     void dropEventPlay( QDropEvent* event, bool b_play ) { dropEventPlay(event, b_play, true); }
     void dropEventPlay( QDropEvent *, bool, bool );
-#ifdef WIN32
+#ifdef _WIN32
     virtual bool winEvent( MSG *, long * );
 #endif
     virtual void changeEvent( QEvent * );
@@ -174,7 +174,7 @@ private:
     bool                 b_hasPausedWhenMinimized;
     bool                 b_statusbarVisible;
 
-#ifdef WIN32
+#ifdef _WIN32
     HIMAGELIST himl;
     ITaskbarList3 *p_taskbl;
     UINT taskbar_wmsg;
@@ -199,7 +199,7 @@ public slots:
     void setPlaylistVisibility(bool b_visible);
 
     void popupMenu( const QPoint& );
-#ifdef WIN32
+#ifdef _WIN32
     void changeThumbbarButtons( int );
 #endif
 
index c8a545d89e166d86a081516bd9356e1ff1bff504..00283d752de9deefa4471f1fb179729fe885c62a 100644 (file)
@@ -50,7 +50,7 @@
 #include <vlc_plugin.h>
 #include <vlc_vout_window.h>
 
-#ifdef WIN32 /* For static builds */
+#ifdef _WIN32 /* For static builds */
  #include <QtPlugin>
  Q_IMPORT_PLUGIN(qjpeg)
  Q_IMPORT_PLUGIN(qtaccessiblewidgets)
@@ -235,7 +235,7 @@ vlc_module_begin ()
               UPDATER_DAYS_TEXT, UPDATER_DAYS_TEXT, false )
 #endif
 
-#ifdef WIN32
+#ifdef _WIN32
     add_bool( "qt-disable-volume-keys"             /* name */,
               true                                 /* default value */,
               QT_DISABLE_VOLUME_KEYS_TEXT          /* text */,
@@ -294,7 +294,7 @@ vlc_module_begin ()
         set_capability( "vout window xid", 0 )
         set_callbacks( WindowOpen, WindowClose )
 #endif
-#if defined (Q_WS_WIN) || (defined (Q_WS_QPA) && defined (WIN32)) \
+#if defined (Q_WS_WIN) || (defined (Q_WS_QPA) && defined (_WIN32)) \
  || defined (Q_WS_PM)  || (defined (Q_WS_QPA) && defined (__OS2__))
     add_submodule ()
         set_capability( "vout window hwnd", 0 )
@@ -459,7 +459,7 @@ static void *Thread( void *obj )
 
     /* All the settings are in the .conf/.ini style */
     p_intf->p_sys->mainSettings = new QSettings(
-#ifdef WIN32
+#ifdef _WIN32
             QSettings::IniFormat,
 #else
             QSettings::NativeFormat,
index aeb95656cf1ac42ec6d88957a25d32331b6293e2..a07e0839a6a941c813744aad34d792bf6c473706 100644 (file)
@@ -78,7 +78,7 @@ struct intf_sys_t
     int  i_screenHeight;     /* Detection of Small screens */
     unsigned voutWindowType; /* Type of vout_window_t provided */
     bool b_isDialogProvider; /* Qt mode or Skins mode */
-#ifdef WIN32
+#ifdef _WIN32
     bool disable_volume_keys;
 #endif
 };
index e79299504d9a4049a4a616341b17b614792e69c7..75839e8063345e0d5cfbf6a039872b01875895b6 100755 (executable)
@@ -32,7 +32,7 @@
 #include <QRegExp>
 #include <QSignalMapper>
 
-#ifdef WIN32
+#ifdef _WIN32
     #include <shlobj.h>
     /* typedef enum  {
         SHARD_PIDL              = 0x00000001,
@@ -88,7 +88,7 @@ void RecentsMRL::addRecent( const QString &mrl )
 
     msg_Dbg( p_intf, "Adding a new MRL to recent ones: %s", qtu( mrl ) );
 
-#ifdef WIN32
+#ifdef _WIN32
     /* Add to the Windows 7 default list in taskbar */
     char* path = make_path( qtu( mrl ) );
     if( path )
index b3d05beafcc41204ae19bc80bbdb73cb5669f4c1..38166a42bdb14dff9a10161dbddf2f3217ba2d0d 100644 (file)
@@ -25,7 +25,7 @@
 # include "config.h"
 #endif
 
-#ifdef WIN32
+#ifdef _WIN32
 
 #include <stdlib.h>
 #include "registry.hpp"
@@ -213,4 +213,4 @@ long QVLCRegistry::DeleteKey( const char *path, const char *keyName )
     return result;
 }
 
-#endif /* WIN32 */
+#endif /* _WIN32 */
index 260befaeeb8e943fd24ed48d0b104f333f4624e5..06196f9c350e1980dfb12af2c7a8bdd79b3f5872 100644 (file)
@@ -1251,7 +1251,7 @@ string Builder::getFilePath( const string &rFileName ) const
            file[pos] = '/';
     }
 
-#if defined( WIN32 ) || defined( __OS2__ )
+#if defined( _WIN32 ) || defined( __OS2__ )
     string::size_type pos;
     while( ( pos = file.find( "/" ) ) != string::npos )
        file.replace( pos, 1, sep );
index 70cc385bf46d23c1a418970824741f00a4713159..8b880bb1f5d70bd1cad1e142fc99e2edf4bd6721 100644 (file)
@@ -76,7 +76,7 @@ static inline string sFromLocale( const string &rLocale )
     return res;
 }
 
-#ifdef WIN32
+#ifdef _WIN32
 /// Wrapper around FromWide, to avoid the need to call free()
 static inline string sFromWide( const wstring &rWide )
 {
index 52200b16674481a27fc56d71a6263fded880e163..caecdff887a7c554e1a12fc68e2a72dfd1a356e2 100644 (file)
@@ -491,7 +491,7 @@ vlc_module_begin ()
     add_string( "skins2-config", "", SKINS2_CONFIG, SKINS2_CONFIG_LONG,
                 true )
         change_private ()
-#ifdef WIN32
+#ifdef _WIN32
     add_bool( "skins2-systray", true, SKINS2_SYSTRAY,
               SKINS2_SYSTRAY_LONG, false );
     add_bool( "skins2-taskbar", true, SKINS2_TASKBAR,
@@ -511,7 +511,7 @@ vlc_module_begin ()
     add_shortcut( "skins" )
 
     add_submodule ()
-#if defined( WIN32 ) || defined( __OS2__ )
+#if defined( _WIN32 ) || defined( __OS2__ )
         set_capability( "vout window hwnd", 51 )
 #else
         set_capability( "vout window xid", 51 )
index 2f2a640566d7748d624c50604caf1bac545b8463..7f7dfe6467d06e0fdfe41dab6e97efada8edb662 100644 (file)
@@ -27,7 +27,7 @@
 #include "../commands/cmd_dialogs.hpp"
 #ifdef HAVE_UNISTD_H
 #   include <unistd.h>
-#elif defined( WIN32 )
+#elif defined( _WIN32 )
 #   include <direct.h>
 #endif
 
index 615c945c3e7656224f72d3544686d4cd814e5cdc..6d01ca0a3b38bfcd63ec154a2b5e597b948f6bee 100644 (file)
@@ -71,7 +71,7 @@ public:
     }
     virtual ~VoutMainWindow() { }
 
-#if defined( WIN32 ) || defined( __OS2__ )
+#if defined( _WIN32 ) || defined( __OS2__ )
 
     virtual void processEvent( EvtKey &rEvtKey )
     {
index 089f520111e41dea62f3a88696b2005d2f05164a..121cc53b1ef4c32ffd8eb6ba492e8a787067376a 100644 (file)
@@ -34,7 +34,7 @@
 #ifndef HAVE_LRINTF
 #   ifdef HAVE_LRINT
 #       define lrintf( x ) (int)rint( x )
-#   elif defined WIN32
+#   elif defined _WIN32
         __inline long int lrintf( float x )
         {
             int i;
index 9e91888531bdc510db3ba319a0bf9f2bc28ccb7c..79843960a9f762fe06d515230276f9e5a01547e5 100644 (file)
@@ -833,7 +833,7 @@ static lua_State* GetLuaState( extensions_manager_t *p_mgr,
             luaopen_vlm( L );
             luaopen_volume( L );
             luaopen_xml( L );
-#if defined(WIN32) && !VLC_WINSTORE_APP
+#if defined(_WIN32) && !VLC_WINSTORE_APP
             luaopen_win( L );
 #endif
 
index 96db69f72b4c4943be3deed5fd7cf5cbdfefe1bf..2f8d91f6bf1ad2b9339b8ec1a93a9a5564640c8c 100644 (file)
@@ -266,7 +266,7 @@ static int Start_LuaIntf( vlc_object_t *p_this, const char *name )
     luaopen_gettext( L );
     luaopen_xml( L );
     luaopen_equalizer( L );
-#if defined(WIN32) && !VLC_WINSTORE_APP
+#if defined(_WIN32) && !VLC_WINSTORE_APP
     luaopen_win( L );
 #endif
 
index 608e1248862b277b4a8c6eb10bdcabc9b6601eb0..a86a7a019d2ef762a57057edd736f325ea35d3d7 100644 (file)
@@ -45,7 +45,7 @@ void luaopen_gettext( lua_State * );
 void luaopen_input_item( lua_State *L, input_item_t *item );
 void luaopen_xml( lua_State *L );
 void luaopen_equalizer( lua_State *L );
-#ifdef WIN32
+#ifdef _WIN32
 void luaopen_win( lua_State *L );
 #endif
 
index d64b17da45ac077fd522106b585d3ad352d4ba7c..e2e8aa36120b53b7def30c635aaf3f4a24caadc2 100644 (file)
@@ -43,7 +43,7 @@
 #include "playlist.h"
 #include "../../audio_filter/equalizer_presets.h"
 
-#if !defined WIN32
+#if !defined _WIN32
 # include <locale.h>
 #else
 # include <windows.h>
index ea6124598c7e9cd8bfdd2674a1213846993c6f6a..4c3ee72431f290db7ffefdb91906171cffdfb4c4 100644 (file)
@@ -29,7 +29,7 @@
 #endif
 
 #include <errno.h>
-#ifdef WIN32
+#ifdef _WIN32
 #include <io.h>
 #endif
 #ifdef HAVE_POLL
index 1da88ced8c169228d0d11d93c6683cd21ca83b94..a4b590bea63ae5d30da9f2d56bc8cc306093fe7b 100644 (file)
@@ -109,7 +109,7 @@ vlc_module_begin ()
         set_capability( "interface", 25 )
         set_description( N_("Command-line interface") )
         set_callbacks( Open_LuaCLI, Close_LuaIntf )
-#ifndef WIN32
+#ifndef _WIN32
         add_shortcut( "luacli", "luarc", "cli", "rc" )
 #else
         add_shortcut( "luacli", "luarc" )
@@ -215,7 +215,7 @@ int vlclua_dir_list( const char *luadirname, char ***pppsz_dir_list )
         i++;
     free( datadir );
 
-#if !(defined(__APPLE__) || defined(WIN32) || defined(__OS2__))
+#if !(defined(__APPLE__) || defined(_WIN32) || defined(__OS2__))
     char *psz_libpath = config_GetLibDir();
     if( likely(psz_libpath != NULL) )
     {
index 8867514d2e7879c2704a540c160ca297714b9453..62c30dd2f934a1a44a609df34f70b36e3f365a67 100644 (file)
@@ -38,7 +38,7 @@
 
 #include <sys/stat.h>
 
-#ifdef WIN32
+#ifdef _WIN32
 # include <vlc_charset.h>
 # include <io.h>
 #else
@@ -47,7 +47,7 @@
 
 
 // Taglib headers
-#ifdef WIN32
+#ifdef _WIN32
 # define TAGLIB_STATIC
 #endif
 #include <taglib.h>
@@ -542,7 +542,7 @@ static int ReadMeta( vlc_object_t* p_this)
     if( !psz_path )
         return VLC_ENOMEM;
 
-#if defined(WIN32)
+#if defined(_WIN32)
     wchar_t *wpath = ToWide( psz_path );
     if( wpath == NULL )
     {
@@ -863,7 +863,7 @@ static int WriteMeta( vlc_object_t *p_this )
         return VLC_EGENERIC;
     }
 
-#if defined(WIN32)
+#if defined(_WIN32)
     wchar_t *wpath = ToWide( p_export->psz_file );
     if( wpath == NULL )
         return VLC_EGENERIC;
index b3227c48bea6f4f883f38d5b8d431cec0f0355e1..4a6056abe1d237c350c9b3202bdd97fb61ac5d45 100644 (file)
@@ -139,7 +139,7 @@ static int gnutls_Error (vlc_object_t *obj, int val)
     switch (val)
     {
         case GNUTLS_E_AGAIN:
-#ifdef WIN32
+#ifdef _WIN32
             WSASetLastError (WSAEWOULDBLOCK);
 #else
             errno = EAGAIN;
@@ -147,7 +147,7 @@ static int gnutls_Error (vlc_object_t *obj, int val)
             break;
 
         case GNUTLS_E_INTERRUPTED:
-#ifdef WIN32
+#ifdef _WIN32
             WSASetLastError (WSAEINTR);
 #else
             errno = EINTR;
@@ -160,7 +160,7 @@ static int gnutls_Error (vlc_object_t *obj, int val)
             if (!gnutls_error_is_fatal (val))
                 msg_Err (obj, "Error above should be handled");
 #endif
-#ifdef WIN32
+#ifdef _WIN32
             WSASetLastError (WSAECONNRESET);
 #else
             errno = ECONNRESET;
@@ -216,7 +216,7 @@ static int gnutls_ContinueHandshake (vlc_tls_t *session, const char *host,
     vlc_tls_sys_t *sys = session->sys;
     int val;
 
-#ifdef WIN32
+#ifdef _WIN32
     WSASetLastError (0);
 #endif
     do
@@ -232,7 +232,7 @@ static int gnutls_ContinueHandshake (vlc_tls_t *session, const char *host,
 
     if (val < 0)
     {
-#ifdef WIN32
+#ifdef _WIN32
         msg_Dbg (session, "Winsock error %d", WSAGetLastError ());
 #endif
         msg_Err (session, "TLS handshake error: %s", gnutls_strerror (val));
index 061ca154a090396cebc74ec9def3b8e05982de57..333d449d8d90d918647e8661dfdbaff2f0f1632b 100644 (file)
@@ -44,7 +44,7 @@
 #include <vlc_strings.h>
 #include <vlc_rand.h>
 
-#ifndef WIN32
+#ifndef _WIN32
 # include <locale.h>
 #endif
 
index 8570950bd885102a969a138fbdaffe6ff8a9e5e0..b9834a7577fa048f6579f3a1d44b164456c0a0f1 100644 (file)
@@ -50,7 +50,7 @@ vlc_module_begin ()
     set_capability( "xml", 10 )
     set_callbacks( Open, Close )
 
-#ifdef WIN32
+#ifdef _WIN32
     cannot_unload_broken_library()
 #endif
 
index faf5b229a1be1e6f12ccf78c9444c0f267513b60..07003240c8717589b91b554f2f36d14889b7936c 100644 (file)
@@ -54,7 +54,7 @@
 #   include <zlib.h>
 #endif
 
-#ifndef WIN32
+#ifndef _WIN32
 #   include <net/if.h>
 #endif
 
@@ -473,7 +473,7 @@ static void *Run( void *data )
     InitSocket( p_sd, SAP_V4_LINK_ADDRESS, SAP_PORT );
 
     char psz_address[NI_MAXNUMERICHOST] = "ff02::2:7ffe%";
-#ifndef WIN32
+#ifndef _WIN32
     struct if_nameindex *l = if_nameindex ();
     if (l != NULL)
     {
index 0b47951a5a5632f2155d86f08b39b0426a647196..197e4cd8ecfab1f47cc12c516bf92e54329f5484 100644 (file)
@@ -34,7 +34,7 @@
 
 #include <assert.h>
 
-#ifdef WIN32
+#ifdef _WIN32
 # define CHROMAPRINT_NODLL
 #endif
 
index fdd04c97633c43c35ca2ec11cf971680be945046..46289db5a859a11295afd2c66807a9c9973298e0 100644 (file)
@@ -82,7 +82,7 @@ rtcp_sender_t *OpenRTCP (vlc_object_t *obj, int rtp_fd, int proto,
     if (mux)
     {
         /* RTP/RTCP mux: duplicate the socket */
-#ifndef WIN32
+#ifndef _WIN32
         fd = vlc_dup (rtp_fd);
 #else
         WSAPROTOCOL_INFO info;
index 25ac644a12bcca702977c2c664710f87d1c7d7da..62c89b7baf77b1c8019b07701798dc41ae7b3e49 100644 (file)
@@ -1396,7 +1396,7 @@ static int  HttpCallback( httpd_file_sys_t *p_args,
  ****************************************************************************/
 static void* ThreadSend( void *data )
 {
-#ifdef WIN32
+#ifdef _WIN32
 # define ENOBUFS      WSAENOBUFS
 # define EAGAIN       WSAEWOULDBLOCK
 # define EWOULDBLOCK  WSAEWOULDBLOCK
index cece5bc85e94565deb5b2a66f52a1b5b0e30e019..da781594c532401379fcae1398d97d8cce8715ff 100644 (file)
@@ -45,7 +45,7 @@
 #include <stdlib.h>
 #include <time.h>
 
-#ifndef WIN32
+#ifndef _WIN32
 # include <locale.h>
 #endif
 #ifdef HAVE_XLOCALE_H
@@ -422,7 +422,7 @@ static void RtspClientAlive( rtsp_session_t *session )
 static int dup_socket(int oldfd)
 {
     int newfd;
-#ifndef WIN32
+#ifndef _WIN32
     newfd = vlc_dup(oldfd);
 #else
     WSAPROTOCOL_INFO info;
index 5d7ca655a83309ed841c2abf4092a337439eb88d..ad27b6ef42091acc3ec6d99c54a6d1ab068cf89e 100644 (file)
@@ -51,7 +51,7 @@
 # define SYSTEM_DEFAULT_FAMILY "Arial Unicode MS"
 # define SYSTEM_DEFAULT_MONOSPACE_FONT_FILE "/System/Library/Fonts/Monaco.dfont"
 # define SYSTEM_DEFAULT_MONOSPACE_FAMILY "Monaco"
-#elif defined( WIN32 )
+#elif defined( _WIN32 )
 # define SYSTEM_DEFAULT_FONT_FILE "arial.ttf" /* Default path font found at run-time */
 # define SYSTEM_DEFAULT_FAMILY "Arial"
 # define SYSTEM_DEFAULT_MONOSPACE_FONT_FILE "cour.ttf"
 #endif
 
 /* Win32 GDI */
-#ifdef WIN32
+#ifdef _WIN32
 # include <windows.h>
 # include <shlobj.h>
 # define HAVE_STYLES
@@ -361,7 +361,7 @@ struct filter_sys_t
     char*          psz_fontfamily;
     char*          psz_monofontfamily;
     xml_reader_t  *p_xml;
-#ifdef WIN32
+#ifdef _WIN32
     char*          psz_win_fonts_path;
 #endif
 
@@ -490,7 +490,7 @@ static void FontConfig_BuildCache( filter_t *p_filter )
     FcInit();
 #endif
 
-#if defined( WIN32 ) || defined( __APPLE__ )
+#if defined( _WIN32 ) || defined( __APPLE__ )
     dialog_progress_bar_t *p_dialog = NULL;
     FcConfig *fcConfig = FcInitLoadConfig();
 
@@ -598,7 +598,7 @@ static char* FontConfig_Select( FcConfig* config, const char* family,
 }
 #endif
 
-#ifdef WIN32
+#ifdef _WIN32
 #define FONT_DIR_NT _T("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Fonts")
 
 static int GetFileFontByName( LPCTSTR font_name, char **psz_filename )
@@ -725,7 +725,7 @@ fail:
             return psz_tmp;
     }
 }
-#endif /* HAVE_WIN32 */
+#endif /* _WIN32 */
 
 #ifdef __APPLE__
 #if !TARGET_OS_IPHONE
@@ -1989,7 +1989,7 @@ static FT_Face LoadFace( filter_t *p_filter,
 #if !TARGET_OS_IPHONE
         psz_fontfile = MacLegacy_Select( p_filter, p_style->psz_fontname, false, false, -1, &i_idx );
 #endif
-#elif defined( WIN32 )
+#elif defined( _WIN32 )
         psz_fontfile = Win32_Select( p_filter,
                                     p_style->psz_fontname,
                                     (p_style->i_style_flags & STYLE_BOLD) != 0,
@@ -2843,7 +2843,7 @@ static int Create( vlc_object_t *p_this )
     p_sys->f_shadow_vector_x = f_shadow_distance * cos(2 * M_PI * f_shadow_angle / 360);
     p_sys->f_shadow_vector_y = f_shadow_distance * sin(2 * M_PI * f_shadow_angle / 360);
 
-#ifdef WIN32
+#ifdef _WIN32
     /* Get Windows Font folder */
     wchar_t wdir[MAX_PATH];
     if( S_OK != SHGetFolderPathW( NULL, CSIDL_FONTS, NULL, SHGFP_TYPE_CURRENT, wdir ) )
@@ -2861,7 +2861,7 @@ static int Create( vlc_object_t *p_this )
 #ifdef HAVE_STYLES
         psz_fontfamily = strdup( DEFAULT_FAMILY );
 #else
-# ifdef WIN32
+# ifdef _WIN32
         if( asprintf( &psz_fontfamily, "%s"DEFAULT_FONT_FILE, p_sys->psz_win_fonts_path ) == -1 )
             goto error;
 # else
@@ -2887,7 +2887,7 @@ static int Create( vlc_object_t *p_this )
 #if !TARGET_OS_IPHONE
     psz_fontfile = MacLegacy_Select( p_filter, psz_fontfamily, false, false, 0, &fontindex );
 #endif
-#elif defined(WIN32)
+#elif defined(_WIN32)
     psz_fontfile = Win32_Select( p_filter, psz_fontfamily, false, false,
                                  p_sys->i_default_font_size, &fontindex );
 
@@ -2997,7 +2997,7 @@ static void Destroy( vlc_object_t *p_this )
     if( p_sys->p_xml ) xml_ReaderDelete( p_sys->p_xml );
     free( p_sys->psz_fontfamily );
 
-#ifdef WIN32
+#ifdef _WIN32
     free( p_sys->psz_win_fonts_path );
 #endif
 
index cdb57b47a28940269103eb488747137271cecbd6..c30223fd8e5e8cf1d566bfaf1d261e5e664e124a 100644 (file)
@@ -38,7 +38,7 @@
 
 #ifdef HAVE_UNISTD_H
 #    include <unistd.h>
-#elif defined( WIN32 )
+#elif defined( _WIN32 )
 #   include <io.h>
 #endif
 
index 604fa08b9bac9b5dbe2fceae811c51715a95c1e0..9829f952f038fd03e5760df98b4c5f1574ec8d8e 100644 (file)
@@ -16,7 +16,7 @@
 
 #include "AtmoDefs.h"
 
-#if defined(WIN32)
+#if defined(_WIN32)
 #   include <windows.h>
 #endif
 
index eb34582ab2a02e940c813f5a186b274b6bbe6433..486a0c2c26b6c10968dd2c79992adccc64dcd18c 100644 (file)
@@ -21,7 +21,7 @@
 #include <stdio.h>
 #include <fcntl.h>
 
-#if !defined(WIN32)
+#if !defined(_WIN32)
 #include <termios.h>
 #include <unistd.h>
 #endif
@@ -52,7 +52,7 @@ ATMO_BOOL CAtmoClassicConnection::OpenConnection() {
      sprintf(serdevice,"com%d",portNummer);
 #endif
 
-#if defined(WIN32)
+#if defined(_WIN32)
 
      m_hComport = CreateFileA(serdevice, GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL);
      if(m_hComport == INVALID_HANDLE_VALUE) {
@@ -100,7 +100,7 @@ ATMO_BOOL CAtmoClassicConnection::OpenConnection() {
 
 void CAtmoClassicConnection::CloseConnection() {
   if(m_hComport!=INVALID_HANDLE_VALUE) {
-#if defined(WIN32)
+#if defined(_WIN32)
      CloseHandle(m_hComport);
 #else
      close(m_hComport);
@@ -170,7 +170,7 @@ ATMO_BOOL CAtmoClassicConnection::HardwareWhiteAdjust(int global_gamma,
      else
         sendBuffer[12] = 0;
 
-#if defined(WIN32)
+#if defined(_WIN32)
      WriteFile(m_hComport, sendBuffer, 13, &iBytesWritten, NULL); // send to COM-Port
 #else
      iBytesWritten = write(m_hComport, sendBuffer, 13);
@@ -213,7 +213,7 @@ ATMO_BOOL CAtmoClassicConnection::SendData(pColorPacket data) {
        }
    }
 
-#if defined(WIN32)
+#if defined(_WIN32)
    WriteFile(m_hComport, buffer, 19, &iBytesWritten, NULL); // send to COM-Port
 #else
    iBytesWritten = write(m_hComport, buffer, 19);
index 9b684e1be7a74b208d2d8b53e1e7598341035f3a..2b37900e28f20b5346588b19930239b80d9c42fe 100644 (file)
@@ -13,7 +13,7 @@
 #include "AtmoConnection.h"
 #include "AtmoConfig.h"
 
-#if defined(WIN32)
+#if defined(_WIN32)
 #   include <windows.h>
 #endif
 
@@ -22,7 +22,7 @@ class CAtmoClassicConnection : public CAtmoConnection {
     private:
         HANDLE m_hComport;
 
-#if defined(WIN32)
+#if defined(_WIN32)
         DWORD  m_dwLastWin32Error;
     public:
         DWORD getLastError() { return m_dwLastWin32Error; }
index 06c16c9b7679f2196d0146df2d63d79d50bfd23b..9c39a3bddd0f3a7b436e9a90f1e2b990c6e945b9 100644 (file)
@@ -52,7 +52,7 @@
 #define ATMO_MAX(X, Y)  ((X) > (Y) ? (X) : (Y))
 
 
-#if !defined(WIN32)
+#if !defined(_WIN32)
 
 #define INVALID_HANDLE_VALUE -1
 typedef int HANDLE;
index b1bbb774752dae41c4fe5770c4af9f1822250e8a..41581f481fac9bbb421172d1373d1690d16988c8 100644 (file)
@@ -24,7 +24,7 @@
 #include <stdio.h>
 #include <fcntl.h>
 
-#if !defined(WIN32)
+#if !defined(_WIN32)
 #include <termios.h>
 #include <unistd.h>
 #endif
@@ -67,7 +67,7 @@ ATMO_BOOL CAtmoDmxSerialConnection::OpenConnection() {
      sprintf(serdevice,"com%d",portNummer);
 #endif
 
-#if defined(WIN32)
+#if defined(_WIN32)
 
      m_hComport = CreateFileA(serdevice, GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL);
      if(m_hComport == INVALID_HANDLE_VALUE) {
@@ -115,7 +115,7 @@ ATMO_BOOL CAtmoDmxSerialConnection::OpenConnection() {
 
 void CAtmoDmxSerialConnection::CloseConnection() {
   if(m_hComport!=INVALID_HANDLE_VALUE) {
-#if defined(WIN32)
+#if defined(_WIN32)
      CloseHandle(m_hComport);
 #else
      close(m_hComport);
@@ -160,7 +160,7 @@ ATMO_BOOL CAtmoDmxSerialConnection::SendData(pColorPacket data) {
           z++;
    }
 
-#if defined(WIN32)
+#if defined(_WIN32)
    WriteFile(m_hComport, DMXout, 259, &iBytesWritten, NULL); // send to COM-Port
 #else
    iBytesWritten = write(m_hComport, DMXout, 259);
@@ -189,7 +189,7 @@ ATMO_BOOL CAtmoDmxSerialConnection::setChannelValues(int numValues,unsigned char
          dmxIndex = ((int)channel_values[i]) + 2;
          DMXout[dmxIndex] = channel_values[i+1];
     }
-#if defined(WIN32)
+#if defined(_WIN32)
        WriteFile(m_hComport, DMXout, 259, &iBytesWritten, NULL);
 #else
     iBytesWritten = write(m_hComport, DMXout, 259);
@@ -212,7 +212,7 @@ ATMO_BOOL CAtmoDmxSerialConnection::setChannelColor(int channel, tRGBColor color
        DMXout[channel+1+2]=color.g;
        DMXout[channel+2+2]=color.b;
 
-#if defined(WIN32)
+#if defined(_WIN32)
        WriteFile(m_hComport, DMXout, 259, &iBytesWritten, NULL);
 #else
     iBytesWritten = write(m_hComport, DMXout, 259);
index 02103c01f86d06bb24add8a3f2519a439e9c5b4b..1224fdf5e911a37fe000d3b486e4efdefb5def58 100644 (file)
@@ -14,7 +14,7 @@
 #include "AtmoConnection.h"
 #include "AtmoConfig.h"
 
-#if defined(WIN32)
+#if defined(_WIN32)
 #   include <windows.h>
 #endif
 
@@ -26,7 +26,7 @@ class CAtmoDmxSerialConnection : public CAtmoConnection {
         // contains the DMX Start Adress of each Atmo-Dmx-Channel
         int *m_dmx_channels_base;
 
-#if defined(WIN32)
+#if defined(_WIN32)
         DWORD  m_dwLastWin32Error;
     public:
         DWORD getLastError() { return m_dwLastWin32Error; }
index a229e9a4d9daeb28338e6712a80c62e24f9c1199..765177f33af115c7561dd99d615bcc1c01039c31 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "AtmoDefs.h"
 
-#if defined(WIN32)
+#if defined(_WIN32)
 #   include <windows.h>
 # else
 #   if defined(_ATMO_VLC_PLUGIN_)
index 4da3bb3fe2f8b957817bc769031b90c0282dd360..aac26265e341e7d14627408471292cfaf554d3c6 100644 (file)
@@ -21,7 +21,7 @@
 #include <stdio.h>
 #include <fcntl.h>
 
-#if !defined(WIN32)
+#if !defined(_WIN32)
 #include <termios.h>
 #include <unistd.h>
 #endif
@@ -49,7 +49,7 @@ HANDLE CAtmoMultiConnection::OpenDevice(char *devName)
      m_dwLastWin32Error = 0;
 #endif
 
-#if defined(WIN32)
+#if defined(_WIN32)
      hComport = CreateFileA(devName, GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL);
      if(hComport == INVALID_HANDLE_VALUE) {
 #if !defined(_ATMO_VLC_PLUGIN_)
@@ -105,7 +105,7 @@ ATMO_BOOL CAtmoMultiConnection::OpenConnection()
             if(m_hComports[z] == INVALID_HANDLE_VALUE) {
                 while(z) {
                       z--;
-#if defined(WIN32)
+#if defined(_WIN32)
                       CloseHandle( m_hComports[z] );
 #else
                       close( m_hComports[z] );
@@ -147,7 +147,7 @@ ATMO_BOOL CAtmoMultiConnection::OpenConnection()
 void CAtmoMultiConnection::CloseConnection() {
     for(int i = 0; i < 4; i++ ) {
         if(m_hComports[i] != INVALID_HANDLE_VALUE) {
-#if defined(WIN32)
+#if defined(_WIN32)
            CloseHandle( m_hComports[i] );
 #else
            close( m_hComports[i] );
@@ -254,7 +254,7 @@ ATMO_BOOL CAtmoMultiConnection::internal_HardwareWhiteAdjust(HANDLE hComport,
      else
         sendBuffer[12] = 0;
 
-#if defined(WIN32)
+#if defined(_WIN32)
      WriteFile(hComport, sendBuffer, 13, &iBytesWritten, NULL); // send to COM-Port
 #else
      iBytesWritten = write(hComport, sendBuffer, 13);
@@ -303,7 +303,7 @@ ATMO_BOOL CAtmoMultiConnection::internal_SendData(HANDLE hComport, unsigned char
   buffer[6] = 0; // Summe Blue
   memcpy(&buffer[7], colorData, 4 * 3);
 
-#if defined(WIN32)
+#if defined(_WIN32)
    WriteFile(hComport, buffer, 19, &iBytesWritten, NULL); // send to COM-Port
 #else
    iBytesWritten = write(hComport, buffer, 19);
index 0ffd754fa933f88638899212b458323d30bf1a11..dfbeaf35106a93e7bfee0d5d48fec571b682ee00 100644 (file)
@@ -15,7 +15,7 @@
 #include "AtmoConnection.h"
 #include "AtmoConfig.h"
 
-#if defined(WIN32)
+#if defined(_WIN32)
 #   include <windows.h>
 #endif
 
@@ -26,7 +26,7 @@ class CAtmoMultiConnection :  public CAtmoConnection
         HANDLE m_hComports[4];
         unsigned char m_output[4 * 4 * 3];
 
-#if defined(WIN32)
+#if defined(_WIN32)
         DWORD  m_dwLastWin32Error;
     public:
         DWORD getLastError() { return m_dwLastWin32Error; }
index f5bfef337696cfec9e0dd21ff19baeadf58f0fc7..4cfb4321510dea4892957162ebfc6c5e77ce2bef 100644 (file)
@@ -5,7 +5,7 @@
 
 #include "AtmoDefs.h"
 
-#if defined (WIN32)
+#if defined (_WIN32)
 #  include <windows.h>
 #else
 #  include <vlc_codecs.h>
index 8c670fcbde26d5a54435e495d555eb37693295ad..799bdf2ba8dcbdb5301c46356d97a6f51eb92994 100644 (file)
@@ -36,7 +36,7 @@
 #include <stdio.h>
 #include <fcntl.h>
 
-#if !defined(WIN32)
+#if !defined(_WIN32)
 #include <termios.h>
 #include <unistd.h>
 #endif
@@ -71,7 +71,7 @@ ATMO_BOOL CFnordlichtConnection::OpenConnection()
     sprintf(serdevice,"com%d",portNummer);
 #endif
 
-#if defined(WIN32)
+#if defined(_WIN32)
 
     m_hComport = CreateFileA(serdevice,
                     GENERIC_WRITE, 0, NULL,
@@ -132,7 +132,7 @@ void CFnordlichtConnection::CloseConnection()
     {
         reset(255);
 
-#if defined(WIN32)
+#if defined(_WIN32)
         CloseHandle(m_hComport);
 #else
         close(m_hComport);
@@ -194,7 +194,7 @@ ATMO_BOOL CFnordlichtConnection::SendData(pColorPacket data)
             buffer[6] = data->zone[idx].b;
         }
 
-#if defined(WIN32)
+#if defined(_WIN32)
         // send to COM-Port
         WriteFile( m_hComport, buffer, sizeof(buffer),
                     (DWORD*)&iBytesWritten, NULL );
@@ -260,7 +260,7 @@ ATMO_BOOL CFnordlichtConnection::sync(void)
 
     buffer[sizeof(buffer)-1] = 0x00; // append one zero byte
 
-#if defined(WIN32)
+#if defined(_WIN32)
         // send to COM-Port
         WriteFile( m_hComport, buffer, sizeof(buffer),
                     (DWORD*)&iBytesWritten, NULL );
@@ -302,7 +302,7 @@ ATMO_BOOL CFnordlichtConnection::stop(unsigned char addr)
     buffer[1] = 0x08; // stop command
     buffer[2] = 1;    // fading
 
-#if defined(WIN32)
+#if defined(_WIN32)
         // send to COM-Port
         WriteFile( m_hComport, buffer, sizeof(buffer),
                     (DWORD*)&iBytesWritten, NULL );
@@ -367,7 +367,7 @@ ATMO_BOOL CFnordlichtConnection::start_bootloader(unsigned char addr)
     buffer[4] = 0x27;
     buffer[5] = 0xfc;
 
-#if defined(WIN32)
+#if defined(_WIN32)
         // send to COM-Port
         WriteFile( m_hComport, buffer, sizeof(buffer),
                     (DWORD*)&iBytesWritten, NULL );
@@ -404,7 +404,7 @@ ATMO_BOOL CFnordlichtConnection::boot_enter_application(unsigned char addr)
     buffer[0] = addr; // fnordlicht address (255 = broadcast)
     buffer[1] = 0x87; // boot_ender_application command
 
-#if defined(WIN32)
+#if defined(_WIN32)
         // send to COM-Port
         WriteFile( m_hComport, buffer, sizeof(buffer),
                     (DWORD*)&iBytesWritten, NULL );
index 152ad6b6f02b43584ffa6dd7a01fb557cf7f2849..e3452e8efbc8aa6ca547cbe049d64bdacf3b9208 100644 (file)
@@ -28,7 +28,7 @@
 #include "AtmoConnection.h"
 #include "AtmoConfig.h"
 
-#if defined(WIN32)
+#if defined(_WIN32)
 #   include <windows.h>
 #endif
 
@@ -44,7 +44,7 @@ class CFnordlichtConnection : public CAtmoConnection
         ATMO_BOOL start_bootloader(unsigned char addr);
         ATMO_BOOL boot_enter_application(unsigned char addr);
 
-#if defined(WIN32)
+#if defined(_WIN32)
         DWORD  m_dwLastWin32Error;
     public:
         DWORD getLastError() { return m_dwLastWin32Error; }
index 4bb7199b30d11149d48db6781cf80bbd413af487..c2a0a7af50f5335963a5ec576eada99213a9a742 100644 (file)
@@ -21,7 +21,7 @@
 #include <stdio.h>
 #include <fcntl.h>
 
-#if !defined(WIN32)
+#if !defined(_WIN32)
 #include <termios.h>
 #include <unistd.h>
 #endif
@@ -52,7 +52,7 @@ ATMO_BOOL CMoMoConnection::OpenConnection() {
      sprintf(serdevice,"com%d",portNummer);
 #endif
 
-#if defined(WIN32)
+#if defined(_WIN32)
 
      m_hComport = CreateFileA(serdevice, GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL);
      if(m_hComport == INVALID_HANDLE_VALUE) {
@@ -100,7 +100,7 @@ ATMO_BOOL CMoMoConnection::OpenConnection() {
 
 void CMoMoConnection::CloseConnection() {
   if(m_hComport!=INVALID_HANDLE_VALUE) {
-#if defined(WIN32)
+#if defined(_WIN32)
      CloseHandle(m_hComport);
 #else
      close(m_hComport);
@@ -150,7 +150,7 @@ ATMO_BOOL CMoMoConnection::SendData(pColorPacket data) {
        }
    }
 
-#if defined(WIN32)
+#if defined(_WIN32)
    WriteFile(m_hComport, buffer, bufSize, &iBytesWritten, NULL); // send to COM-Port
 #else
    iBytesWritten = write(m_hComport, buffer, bufSize);
index b742e48bbbeed7b4fbd6fb034d02a0fdd1fa0542..5fd094194b033eb753d9a7074bd15b1d3362e4ed 100644 (file)
@@ -13,7 +13,7 @@
 #include "AtmoConnection.h"
 #include "AtmoConfig.h"
 
-#if defined(WIN32)
+#if defined(_WIN32)
 #   include <windows.h>
 #endif
 
@@ -22,7 +22,7 @@ class CMoMoConnection : public CAtmoConnection {
     private:
         HANDLE m_hComport;
 
-#if defined(WIN32)
+#if defined(_WIN32)
         DWORD  m_dwLastWin32Error;
     public:
         DWORD getLastError() { return m_dwLastWin32Error; }
index 27e0f867bd495f51d4529aacbcd70069dffc9c96..cbcbec1d275519cc0b895cef0a70ceb58d7f67cc 100644 (file)
@@ -138,7 +138,7 @@ strings for settings menus and hints
                                   "process - with more options")
 
 static const int pi_device_type_values[] = {
-#if defined( WIN32 )
+#if defined( _WIN32 )
      0, /* use AtmoWinA.exe userspace driver */
 #endif
      1, /* AtmoLight classic */
@@ -148,7 +148,7 @@ static const int pi_device_type_values[] = {
      5  /* fnordlicht */
 };
 static const char *const ppsz_device_type_descriptions[] = {
-#if defined( WIN32 )
+#if defined( _WIN32 )
         N_("AtmoWin Software"),
 #endif
         N_("Classic AtmoLight"),
@@ -174,7 +174,7 @@ static const char *const ppsz_device_type_descriptions[] = {
                                    "fnordlicht hardware " \
                                    "choose 1 to 254 channels")
 
-#if defined( WIN32 )
+#if defined( _WIN32 )
 #  define DEFAULT_DEVICE   0
 #else
 #  define DEFAULT_DEVICE   1
@@ -349,7 +349,7 @@ static const char *const ppsz_zone_assignment_descriptions[] = {
     "bitmaps, put them as zone_0.bmp, zone_1.bmp etc. into one folder and "\
     "set the foldername here")
 
-#if defined( WIN32 )
+#if defined( _WIN32 )
 #   define ATMOWINEXE_TEXT      N_("Filename of AtmoWin*.exe")
 #   define ATMOWINEXE_LONGTEXT  N_("if you want the AtmoLight control "\
                                    "software to be launched by VLC, enter the "\
@@ -378,7 +378,7 @@ add_integer( CFG_PREFIX "device", DEFAULT_DEVICE,
 change_integer_list( pi_device_type_values,
                      ppsz_device_type_descriptions )
 
-#if defined(WIN32)
+#if defined(_WIN32)
 add_string(CFG_PREFIX "serialdev", "COM1",
            SERIALDEV_TEXT, SERIALDEV_LONGTEXT, false )
 /*
@@ -673,7 +673,7 @@ static const char *const ppsz_filter_options[] = {
         "momo-channels",
         "fnordlicht-amount",
 
-#if defined(WIN32 )
+#if defined(_WIN32 )
         "atmowinexe",
 #endif
 #if defined(__ATMO_DEBUG__)
@@ -793,7 +793,7 @@ struct filter_sys_t
         picture_t *p_inpic,
         uint8_t *p_transfer_dest);
 
-#if defined( WIN32 )
+#if defined( _WIN32 )
     /* External Library as wrapper arround COM Stuff */
     HINSTANCE h_AtmoCtrl;
     int32_t (*pf_ctrl_atmo_initialize) (void);
@@ -836,7 +836,7 @@ static int32_t AtmoInitialize(filter_t *p_filter, bool b_for_thread)
                                   "some other software/driver may use it?");
             }
         }
-#if defined(WIN32)
+#if defined(_WIN32)
     } else if(p_sys->pf_ctrl_atmo_initialize)
     {
         /* on win32 with active ctrl dll */
@@ -908,7 +908,7 @@ static void AtmoFinalize(filter_t *p_filter, int32_t what)
                 p_atmo_dyndata->UnLockCriticalSection();
             }
         }
-#if defined(WIN32)
+#if defined(_WIN32)
     } else if(p_sys->pf_ctrl_atmo_finalize)
     {
         /* on win32 with active ctrl dll */
@@ -929,7 +929,7 @@ static int32_t AtmoSwitchEffect(filter_t *p_filter, int32_t newMode)
     if(p_sys->p_atmo_config)
     {
        return CAtmoTools::SwitchEffect(p_sys->p_atmo_dyndata, emLivePicture);
-#if defined(WIN32)
+#if defined(_WIN32)
     } else if(p_sys->pf_ctrl_atmo_switch_effect)
     {
         /* on win32 with active ctrl dll */
@@ -959,7 +959,7 @@ static int32_t AtmoSetLiveSource(filter_t *p_filter, int32_t newSource)
         function call would just do nothing special
         in this case
         */
-#if defined(WIN32)
+#if defined(_WIN32)
     } else if(p_sys->pf_ctrl_atmo_set_live_source)
     {
         /* on win32 with active ctrl dll */
@@ -1000,7 +1000,7 @@ static void AtmoCreateTransferBuffers(filter_t *p_filter,
         p_sys->mini_image_format.biBitCount = bytePerPixel*8;
         p_sys->mini_image_format.biCompression = FourCC;
 
-#if defined(WIN32)
+#if defined(_WIN32)
     } else if(p_sys->pf_ctrl_atmo_create_transfer_buffers)
     {
         /* on win32 with active ctrl dll */
@@ -1024,7 +1024,7 @@ static uint8_t* AtmoLockTransferBuffer(filter_t *p_filter)
     if(p_sys->p_atmo_config)
     {
         return p_sys->p_atmo_transfer_buffer;
-#if defined(WIN32)
+#if defined(_WIN32)
     } else if(p_sys->pf_ctrl_atmo_lock_transfer_buffer)
     {
         /* on win32 with active ctrl dll */
@@ -1071,7 +1071,7 @@ static void AtmoSendPixelData(filter_t *p_filter)
                                                p_sys->p_atmo_transfer_buffer);
             }
         }
-#if defined(WIN32)
+#if defined(_WIN32)
     } else if(p_sys->pf_ctrl_atmo_send_pixel_data)
     {
         /* on win32 with active ctrl dll */
@@ -1182,7 +1182,7 @@ static void Atmo_SetupImageSize(filter_t *p_filter)
 
     if(p_sys->p_atmo_config)
     {
-#if defined(WIN32)
+#if defined(_WIN32)
     } else if(p_sys->pf_ctrl_atmo_get_image_size)
     {
         /* on win32 with active ctrl dll */
@@ -1586,9 +1586,9 @@ static void Atmo_SetupParameters(filter_t *p_filter)
     */
 
 
-#if defined(WIN32)
+#if defined(_WIN32)
     /*
-    only on WIN32 the user has the choice between
+    only on _WIN32 the user has the choice between
     internal driver and external
     */
 
@@ -1776,7 +1776,7 @@ static void Atmo_SetupParameters(filter_t *p_filter)
     if(psz_path != NULL)
     {
         strcpy(p_sys->sz_framepath, psz_path);
-#if defined( WIN32 ) || defined( __OS2__ )
+#if defined( _WIN32 ) || defined( __OS2__ )
         size_t i_strlen = strlen(p_sys->sz_framepath);
         if((i_strlen>0) && (p_sys->sz_framepath[i_strlen-1] != '\\'))
         {
@@ -1843,7 +1843,7 @@ static void Atmo_SetupParameters(filter_t *p_filter)
     */
     int i = AtmoInitialize(p_filter, false);
 
-#if defined( WIN32 )
+#if defined( _WIN32 )
     if((i != 1) && (p_sys->i_device_type == 0))
     {
         /*
@@ -1986,7 +1986,7 @@ static void DestroyFilter( vlc_object_t *p_this )
 
     Atmo_Shutdown(p_filter);
 
-#if defined( WIN32 )
+#if defined( _WIN32 )
     if(p_sys->h_AtmoCtrl != NULL)
     {
         FreeLibrary(p_sys->h_AtmoCtrl);
index 87679c9c4fe07a5b9c18f60f989b660d03ee73d8..df4897db35cdef6d3318f145ffa13428c5201e80 100644 (file)
             "por       "MM"5, "MM"3 \n\t"\
             MOVQ"      "MM"3, "MM"1 \n\t"
 
-#if defined(__MINGW32__) && defined(WIN32) && !defined(WIN64)
+#if defined(__MINGW32__) && defined(_WIN32) && !defined(_WIN64)
 __attribute__((__force_align_arg_pointer__))
 #endif
 VLC_TARGET static void RENAME(yadif_filter_line)(uint8_t *dst,
index 77801a5c41d5b3a5f0bb99c09e7031d61abeb422..e876942f627814c2a9accd44e5f7d7fb078e33be 100644 (file)
@@ -43,7 +43,7 @@
 
 #ifdef OVERLAP
 /* OS CODE DEPENDENT to get display dimensions */
-#   ifdef WIN32
+#   ifdef _WIN32
 #       include <windows.h>
 #   else
 #       include <xcb/xcb.h>
@@ -169,7 +169,7 @@ vlc_module_begin()
     add_integer_with_range( CFG_PREFIX "bz-whitelevel-red", 0, 0, 255, RGAMMA_WL_TEXT, RGAMMA_WL_LONGTEXT, true )
     add_integer_with_range( CFG_PREFIX "bz-whitelevel-green", 0, 0, 255, GGAMMA_WL_TEXT, GGAMMA_WL_LONGTEXT, true )
     add_integer_with_range( CFG_PREFIX "bz-whitelevel-blue", 0, 0, 255, BGAMMA_WL_TEXT, BGAMMA_WL_LONGTEXT, true )
-#ifndef WIN32
+#ifndef _WIN32
     add_obsolete_bool( CFG_PREFIX "xinerama" );
 #endif
     add_obsolete_bool( CFG_PREFIX "offset-x" )
@@ -343,7 +343,7 @@ static const panoramix_chroma_t p_chroma_array[] = {
     { 0, {0, }, { 0, }, { 0, 0, 0 }, false }
 };
 
-#ifndef WIN32
+#ifndef _WIN32
 /* Get the number of outputs */
 static unsigned CountMonitors( vlc_object_t *obj )
 {
@@ -454,7 +454,7 @@ static int Open( vlc_object_t *p_this )
     /* Autodetect number of displays */
     if( p_sys->i_col < 0 || p_sys->i_row < 0 )
     {
-#ifdef WIN32
+#ifdef _WIN32
         const int i_monitor_count = GetSystemMetrics(SM_CMONITORS);
         if( i_monitor_count > 1 )
         {
index 9d0dc75e0c4dd96a37f4208106d78bec7b49c6dc..3f71aaa918b25ee2235fbce3798e21fc0364a072 100644 (file)
@@ -319,7 +319,7 @@ static void SavePicture( filter_t *p_filter, picture_t *p_pic )
     else
     {
         /* switch to the final destination */
-#if defined (WIN32) || defined(__OS2__)
+#if defined (_WIN32) || defined(__OS2__)
         vlc_unlink( psz_filename );
 #endif
         i_ret = vlc_rename( psz_temp, psz_filename );
index f4eca6a404fb534e4b64158a647b04cc7498dd4d..5a848cf6b57636d9982aba93473c8420cedc7455 100644 (file)
@@ -36,7 +36,7 @@
 #include <assert.h>
 #include <aalib.h>
 
-#ifndef WIN32
+#ifndef _WIN32
 # ifdef X_DISPLAY_MISSING
 #  error Xlib required due to XInitThreads
 # endif
@@ -90,7 +90,7 @@ static int Open(vlc_object_t *object)
     vout_display_t *vd = (vout_display_t *)object;
     vout_display_sys_t *sys;
 
-#ifndef WIN32
+#ifndef _WIN32
     if (!vlc_xlib_init (object))
         return VLC_EGENERIC;
 #endif
index 27de0f14bfd4d6b329a9064a8197d6114a4ee796..2958abd9a6d431bc4f1a5d5560e9853d361577cc 100644 (file)
@@ -34,7 +34,7 @@
 #include <vlc_plugin.h>
 #include <vlc_vout_display.h>
 #include <vlc_picture_pool.h>
-#if !defined(WIN32) && !defined(__APPLE__)
+#if !defined(_WIN32) && !defined(__APPLE__)
 # ifdef X_DISPLAY_MISSING
 #  error Xlib required due to XInitThreads
 # endif
@@ -88,14 +88,14 @@ static int Open(vlc_object_t *object)
     vout_display_t *vd = (vout_display_t *)object;
     vout_display_sys_t *sys;
 
-#if !defined(__APPLE__) && !defined(WIN32)
+#if !defined(__APPLE__) && !defined(_WIN32)
 # ifndef X_DISPLAY_MISSING
     if (!vlc_xlib_init(object))
         return VLC_EGENERIC;
 # endif
 #endif
 
-#if defined(WIN32)
+#if defined(_WIN32)
     CONSOLE_SCREEN_BUFFER_INFO csbiInfo;
     SMALL_RECT rect;
     COORD coord;
@@ -216,7 +216,7 @@ error:
 
         free(sys);
     }
-#if defined(WIN32)
+#if defined(_WIN32)
     FreeConsole();
 #endif
     return VLC_EGENERIC;
@@ -237,7 +237,7 @@ static void Close(vlc_object_t *object)
     caca_free_display(sys->dp);
     cucul_free_canvas(sys->cv);
 
-#if defined(WIN32)
+#if defined(_WIN32)
     FreeConsole();
 #endif
 
index 399cedaf8e1fba5c3ec74415988100cbc8ab6a2d..d09f1c49893be9d571deb71cf74c33d408da721a 100644 (file)
@@ -190,7 +190,7 @@ static int Open(vlc_object_t *object)
     /* Set tty and fb devices */
     sys->tty = 0; /* 0 == /dev/tty0 == current console */
     sys->is_tty = var_InheritBool(vd, "fb-tty");
-#if !defined(WIN32) &&  defined(HAVE_ISATTY)
+#if !defined(_WIN32) &&  defined(HAVE_ISATTY)
     /* Check that stdin is a TTY */
     if (sys->is_tty && !isatty(0)) {
         msg_Warn(vd, "standard input is not a TTY");
index a3f27f791c24782227ab71de961cbc5800287854..55705d1383daf24597b802e5e8905525d74cc9af 100644 (file)
@@ -53,7 +53,7 @@
 # elif USE_OPENGL_ES == 1
 #  include <GLES/gl.h>
 # else
-#  ifdef WIN32
+#  ifdef _WIN32
 #   include <GL/glew.h>
 #   undef glClientActiveTexture
 #   undef glActiveTexture
index aae949a65717cfc1f57f5bade7af00966ecbaf95..5520bb24ae68061c542777a3cdffebd55f2aa47f 100644 (file)
@@ -40,7 +40,7 @@
 
 #include <SDL.h>
 
-#if !defined(WIN32) && !defined(__OS2__)
+#if !defined(_WIN32) && !defined(__OS2__)
 # ifdef X_DISPLAY_MISSING
 #  error Xlib required due to XInitThreads
 # endif
@@ -116,7 +116,7 @@ static int Open(vlc_object_t *object)
     vout_display_t *vd = (vout_display_t *)object;
     vout_display_sys_t *sys;
 
-#if !defined(WIN32) && !defined(__OS2__)
+#if !defined(_WIN32) && !defined(__OS2__)
     if (!vlc_xlib_init (object))
         return VLC_EGENERIC;
 #endif
@@ -138,7 +138,7 @@ static int Open(vlc_object_t *object)
 
     /* */
     int sdl_flags = SDL_INIT_VIDEO;
-#ifndef WIN32
+#ifndef _WIN32
     /* Win32 SDL implementation doesn't support SDL_INIT_EVENTTHREAD yet*/
     sdl_flags |= SDL_INIT_EVENTTHREAD;
 #endif
index 40a53ebc836a9d7d60eb8a0f7bbb0456f64796da..fcb3059d7b3343a89af321232563f6d326b33f4e 100644 (file)
@@ -74,7 +74,7 @@ static void Close        ( vlc_object_t * );
 #define TEXTURE_TEXT N_("Texture size")
 #define TEXTURE_LONGTEXT N_("The size of the texture, in pixels.")
 
-#ifdef WIN32
+#ifdef _WIN32
 # define FONT_PATH      "C:\\WINDOWS\\Fonts\\arial.ttf"
 # define FONT_PATH_MENU "C:\\WINDOWS\\Fonts\\arial.ttf"
 # define PRESET_PATH    NULL
@@ -362,7 +362,7 @@ static void *Thread( void *p_data )
     free( psz_config );
 #else
     psz_preset_path = var_InheritString( p_filter, "projectm-preset-path" );
-#ifdef WIN32
+#ifdef _WIN32
     if ( psz_preset_path == NULL )
     {
         char *psz_data_path = config_GetDataDir();
index 8f422bf2a7497a6bb01b8890ffdd82ad4e5d7a57..1c0b876883d138e8e084b5f82ffe8a4ded305bcb 100644 (file)
@@ -88,7 +88,7 @@ static FILE *config_OpenConfigFile( vlc_object_t *p_obj )
                  psz_filename );
 
     }
-#if !( defined(WIN32) || defined(__APPLE__) || defined(__OS2__) )
+#if !( defined(_WIN32) || defined(__APPLE__) || defined(__OS2__) )
     else if( p_stream == NULL && errno == ENOENT )
     {
         /* This is the fallback for pre XDG Base Directory
@@ -508,7 +508,7 @@ int config_SaveConfigFile (vlc_object_t *p_this)
 #else
     fdatasync (fd); /* Flush from OS */
 #endif
-#if defined (WIN32) || defined (__OS2__)
+#if defined (_WIN32) || defined (__OS2__)
     /* Windows cannot (re)move open files nor overwrite existing ones */
     fclose (file);
     vlc_unlink (permanent);
@@ -519,7 +519,7 @@ int config_SaveConfigFile (vlc_object_t *p_this)
     /* (...then synchronize the directory, err, TODO...) */
     /* ...and finally close the file */
     vlc_mutex_unlock (&lock);
-#if !defined (WIN32) && !defined (__OS2__)
+#if !defined (_WIN32) && !defined (__OS2__)
     fclose (file);
 #endif
 
index 5cb7b7bb31ca43c29357b8cbf976364de881f0b3..b9541ecda94ad7d5222255d9c9851a1993428221 100644 (file)
@@ -34,7 +34,7 @@
 #include "config/configuration.h"
 #include "libvlc.h"
 
-#if defined( WIN32 ) && !VLC_WINSTORE_APP
+#if defined( _WIN32 ) && !VLC_WINSTORE_APP
 static void ShowConsole (void);
 static void PauseConsole (void);
 #else
@@ -248,7 +248,7 @@ static void Usage (vlc_object_t *p_this, char const *psz_search)
 
 #define LINE_START 8
 #define PADDING_SPACES 25
-#ifdef WIN32
+#ifdef _WIN32
 #   define OPTION_VALUE_SEP "="
 #else
 #   define OPTION_VALUE_SEP " "
@@ -276,7 +276,7 @@ static void Usage (vlc_object_t *p_this, char const *psz_search)
     psz_spaces_text[PADDING_SPACES+LINE_START] = '\0';
     memset( psz_spaces_longtext, ' ', LINE_START+2 );
     psz_spaces_longtext[LINE_START+2] = '\0';
-#ifndef WIN32
+#ifndef _WIN32
     if( !isatty( 1 ) )
 #endif
         b_color = false; // don't put color control codes in a .txt file
@@ -724,7 +724,7 @@ static void ListModules (vlc_object_t *p_this, bool b_verbose)
     bool b_color = var_InheritBool( p_this, "color" );
 
     ShowConsole();
-#ifdef WIN32
+#ifdef _WIN32
     b_color = false; // don't put color control codes in a .txt file
 #else
     if( !isatty( 1 ) )
@@ -796,7 +796,7 @@ static void Version( void )
     PauseConsole();
 }
 
-#if defined( WIN32 ) && !VLC_WINSTORE_APP
+#if defined( _WIN32 ) && !VLC_WINSTORE_APP
 /*****************************************************************************
  * ShowConsole: On Win32, create an output console for debug messages
  *****************************************************************************
@@ -854,7 +854,7 @@ static int ConsoleWidth( void )
 {
     unsigned i_width = 80;
 
-#ifndef WIN32
+#ifndef _WIN32
     FILE *file = popen( "stty size 2>/dev/null", "r" );
     if (file != NULL)
     {
index 561c87b4df4989eb15a14624553b801d81829f93..0864efb97ad0d3c6fff4c4846542395e3003a6de 100644 (file)
@@ -31,7 +31,7 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <assert.h>
-#if defined (WIN32)
+#if defined (_WIN32)
 #  include <direct.h>
 #endif
 #include <sys/stat.h>
@@ -41,7 +41,7 @@
 
 #include <vlc_common.h>
 #include <vlc_fs.h>
-#ifdef WIN32
+#ifdef _WIN32
 #  include <vlc_charset.h>
 #endif
 #include <vlc_input.h>
@@ -1553,7 +1553,7 @@ static char *GetTmpPath( char *psz_path )
     free( psz_path );
 
     /* Create a suitable path */
-#if defined (WIN32) && !VLC_WINSTORE_APP
+#if defined (_WIN32) && !VLC_WINSTORE_APP
     const DWORD dwCount = GetTempPathW( 0, NULL );
     wchar_t *psw_path = calloc( dwCount + 1, sizeof(wchar_t) );
     if( psw_path )
index a6a9938f8d7cf9541ceeff73a16e6a49017639a4..235053843381d7c124eba03850ecb5a6ef2f4d2e 100644 (file)
@@ -80,7 +80,7 @@ int intf_Create( vlc_object_t *p_this, const char *chain )
                 VLC_VAR_HASCHOICE | VLC_VAR_ISCOMMAND );
     text.psz_string = _("Add Interface");
     var_Change( p_intf, "intf-add", VLC_VAR_SETTEXT, &text, NULL );
-#if !defined(WIN32) && defined(HAVE_ISATTY)
+#if !defined(_WIN32) && defined(HAVE_ISATTY)
     if( isatty( 0 ) )
 #endif
     {
index 33affa65c801b4a625cb88682a86f127c4cf3a81..94faf8e41a556c06a6e8431156ddbd88ad0b98cc 100644 (file)
@@ -749,7 +749,7 @@ static const char *const ppsz_prefres[] = {
 #define VCD_DEV_TEXT N_("VCD device")
 #define CDAUDIO_DEV_TEXT N_("Audio CD device")
 
-#if defined( WIN32 ) || defined( __OS2__ )
+#if defined( _WIN32 ) || defined( __OS2__ )
 # define DVD_DEV_LONGTEXT N_( \
     "This is the default DVD drive (or file) to use. Don't forget the colon " \
     "after the drive letter (e.g. D:)")
@@ -1059,7 +1059,7 @@ static const char *const ppsz_prefres[] = {
     "Log all VLC messages to syslog (UNIX systems)." )
 
 #define ONEINSTANCE_TEXT N_("Allow only one running instance")
-#if defined( WIN32 ) || defined( __OS2__ )
+#if defined( _WIN32 ) || defined( __OS2__ )
 #define ONEINSTANCE_LONGTEXT N_( \
     "Allowing only one running instance of VLC can sometimes be useful, " \
     "for example if you associated VLC with some media types and you " \
@@ -1648,7 +1648,7 @@ vlc_module_begin ()
                  SUB_AUTO_TEXT, SUB_AUTO_LONGTEXT, false )
     add_integer( "sub-autodetect-fuzzy", 3,
                  SUB_FUZZY_TEXT, SUB_FUZZY_LONGTEXT, true )
-#if defined( WIN32 ) || defined( __OS2__ )
+#if defined( _WIN32 ) || defined( __OS2__ )
 #   define SUB_PATH ".\\subtitles, .\\subs"
 #else
 #   define SUB_PATH "./Subtitles, ./subtitles, ./Subs, ./subs"
@@ -1985,13 +1985,13 @@ vlc_module_begin ()
               INHIBIT_LONGTEXT, true )
 #endif
 
-#if defined(WIN32) || defined(__OS2__)
+#if defined(_WIN32) || defined(__OS2__)
     add_bool( "high-priority", 0, HPRIORITY_TEXT,
               HPRIORITY_LONGTEXT, false )
 #endif
 
 #define CLOCK_SOURCE_TEXT N_("Clock source")
-#ifdef WIN32
+#ifdef _WIN32
     add_string( "clock-source", NULL, CLOCK_SOURCE_TEXT, CLOCK_SOURCE_TEXT, true )
         change_string_cb( EnumClockSource )
 #endif
@@ -2017,7 +2017,7 @@ vlc_module_begin ()
     add_bool( "playlist-autostart", true,
               AUTOSTART_TEXT, AUTOSTART_LONGTEXT, false )
     add_bool( "playlist-cork", true, CORK_TEXT, CORK_LONGTEXT, false )
-#if defined(WIN32) || defined(HAVE_DBUS) || defined(__OS2__)
+#if defined(_WIN32) || defined(HAVE_DBUS) || defined(__OS2__)
     add_bool( "one-instance", 0, ONEINSTANCE_TEXT,
               ONEINSTANCE_LONGTEXT, true )
     add_bool( "started-from-file", 0, STARTEDFROMFILE_TEXT,
@@ -2058,7 +2058,7 @@ vlc_module_begin ()
         change_short('q')
         change_volatile ()
 
-#if !defined(WIN32) && !defined(__OS2__)
+#if !defined(_WIN32) && !defined(__OS2__)
     add_bool( "daemon", 0, DAEMON_TEXT, DAEMON_LONGTEXT, true )
         change_short('d')
 
@@ -2073,7 +2073,7 @@ vlc_module_begin ()
                true )
 #endif
 
-#if defined (WIN32) || defined (__APPLE__)
+#if defined (_WIN32) || defined (__APPLE__)
     add_obsolete_string( "language" ) /* since 2.1.0 */
 #endif
 
index ced65b011582486f9a8e971c01230b210503e705..88f1562661fe9dde4c8293e413f468a6a37273a9 100644 (file)
@@ -80,7 +80,7 @@
  * The evil global variables. We handle them with care, don't worry.
  *****************************************************************************/
 
-#if !defined(WIN32) && !defined(__OS2__)
+#if !defined(_WIN32) && !defined(__OS2__)
 static bool b_daemon = false;
 #endif
 
@@ -484,7 +484,7 @@ dbus_out:
     var_Create( p_libvlc, "drawable-clip-right", VLC_VAR_INTEGER );
     var_Create( p_libvlc, "drawable-nsobject", VLC_VAR_ADDRESS );
 #endif
-#if defined (WIN32) || defined (__OS2__)
+#if defined (_WIN32) || defined (__OS2__)
     var_Create( p_libvlc, "drawable-hwnd", VLC_VAR_INTEGER );
 #endif
 
@@ -537,7 +537,7 @@ void libvlc_InternalCleanup( libvlc_int_t *p_libvlc )
 
     msg_Dbg( p_libvlc, "removing stats" );
 
-#if !defined( WIN32 ) && !defined( __OS2__ )
+#if !defined( _WIN32 ) && !defined( __OS2__ )
     char* psz_pidfile = NULL;
 
     if( b_daemon )
@@ -565,7 +565,7 @@ void libvlc_InternalCleanup( libvlc_int_t *p_libvlc )
     /* Free module bank. It is refcounted, so we call this each time  */
     module_EndBank (true);
     vlc_LogDeinit (p_libvlc);
-#if defined(WIN32) || defined(__OS2__)
+#if defined(_WIN32) || defined(__OS2__)
     system_End( );
 #endif
 }
@@ -600,7 +600,7 @@ int libvlc_InternalAddIntf( libvlc_int_t *p_libvlc, char const *psz_module )
         char *psz_interface = var_CreateGetNonEmptyString( p_libvlc, "intf" );
         if( !psz_interface ) /* "intf" has not been set */
         {
-#if !defined( WIN32 ) && !defined( __OS2__ )
+#if !defined( _WIN32 ) && !defined( __OS2__ )
             if( b_daemon )
                  /* Daemon mode hack.
                   * We prefer the dummy interface if none is specified. */
index f6185c9efc9bdd944ead969c1e96b2bcf483bc4f..65f0d6d985cd0660b34c6eaf1e18356b9af77d3f 100644 (file)
@@ -41,7 +41,7 @@ size_t vlc_towc (const char *str, uint32_t *restrict pwc);
  */
 void system_Init      ( void );
 void system_Configure ( libvlc_int_t *, int, const char *const [] );
-#if defined(WIN32) || defined(__OS2__)
+#if defined(_WIN32) || defined(__OS2__)
 void system_End(void);
 #ifndef __OS2__
 size_t EnumClockSource( vlc_object_t *, const char *, char ***, char *** );
index acf1e64ed375de07f33d5f1dcb072e6f6ee6bc3d..a7dfed914e842ea9c894fe8abcee56c564076398 100644 (file)
@@ -389,7 +389,7 @@ block_t *block_shm_Alloc (void *addr, size_t length)
 #endif
 
 
-#ifdef WIN32
+#ifdef _WIN32
 # include <io.h>
 
 static
index 77691dd2813bf4969ea8239e94fda65061dc789a..eca79b5911178ec05fd82c46f7c368b4c7d83ff7 100644 (file)
@@ -38,7 +38,7 @@
 
 #ifndef __linux__
 #include <sys/types.h>
-#ifndef WIN32
+#ifndef _WIN32
 #include <unistd.h>
 #include <sys/wait.h>
 #include <signal.h>
@@ -63,7 +63,7 @@ static uint32_t cpu_flags;
 
 #if defined (__i386__) || defined (__x86_64__) || defined (__powerpc__) \
  || defined (__ppc__) || defined (__ppc64__) || defined (__powerpc64__)
-# if !defined (WIN32) && !defined (__OS2__)
+# if !defined (_WIN32) && !defined (__OS2__)
 static bool vlc_CPU_check (const char *name, void (*func) (void))
 {
     pid_t pid = fork();
@@ -113,7 +113,7 @@ static void Altivec_test (void)
 }
 #endif
 
-#else /* WIN32 || __OS2__ */
+#else /* _WIN32 || __OS2__ */
 # define vlc_CPU_check(name, func) (1)
 #endif
 #endif
@@ -271,7 +271,7 @@ unsigned vlc_CPU (void)
 {
 /* On Windows and OS/2,
  * initialized from DllMain() and _DLL_InitTerm() respectively, instead */
-#if !defined(WIN32) && !defined(__OS2__)
+#if !defined(_WIN32) && !defined(__OS2__)
     static pthread_once_t once = PTHREAD_ONCE_INIT;
     pthread_once (&once, vlc_CPU_init);
 #endif
index 0b5a3fd147e6f744e0a9960e6a1d536d7ca05e0d..cc91a662fad795514554cf29fa88532401b015c6 100644 (file)
@@ -45,7 +45,7 @@
 
 #include <vlc_common.h>
 #include <vlc_interface.h>
-#ifdef WIN32
+#ifdef _WIN32
 #   include <vlc_network.h>          /* 'net_strerror' and 'WSAGetLastError' */
 #endif
 #include <vlc_charset.h>
@@ -69,7 +69,7 @@ void vlc_Log (vlc_object_t *obj, int type, const char *module,
     va_end (args);
 }
 
-#ifdef WIN32
+#ifdef _WIN32
 static void Win32DebugOutputMsg (void *, int , const vlc_log_t *,
                                  const char *, va_list);
 #endif
@@ -106,7 +106,7 @@ void vlc_vaLog (vlc_object_t *obj, int type, const char *module,
             char errbuf[2001];
             size_t errlen;
 
-#ifndef WIN32
+#ifndef _WIN32
             strerror_r( errno, errbuf, 1001 );
 #else
             int sockerr = WSAGetLastError( );
@@ -162,7 +162,7 @@ void vlc_vaLog (vlc_object_t *obj, int type, const char *module,
     /* Pass message to the callback */
     libvlc_priv_t *priv = obj ? libvlc_priv (obj->p_libvlc) : NULL;
 
-#ifdef WIN32
+#ifdef _WIN32
     va_list ap;
 
     va_copy (ap, args);
@@ -208,7 +208,7 @@ static void PrintColorMsg (void *d, int type, const vlc_log_t *p_item,
                   p_item->psz_object_type, msg_type[type], msg_color[type]);
     utf8_vfprintf (stream, format, ap);
     fputs (GRAY"\n", stream);
-#if defined (WIN32) || defined (__OS2__)
+#if defined (_WIN32) || defined (__OS2__)
     fflush (stream);
 #endif
     funlockfile (stream);
@@ -234,14 +234,14 @@ static void PrintMsg (void *d, int type, const vlc_log_t *p_item,
                   p_item->psz_object_type, msg_type[type]);
     utf8_vfprintf (stream, format, ap);
     putc_unlocked ('\n', stream);
-#if defined (WIN32) || defined (__OS2__)
+#if defined (_WIN32) || defined (__OS2__)
     fflush (stream);
 #endif
     funlockfile (stream);
     vlc_restorecancel (canc);
 }
 
-#ifdef WIN32
+#ifdef _WIN32
 static void Win32DebugOutputMsg (void* d, int type, const vlc_log_t *p_item,
                                  const char *format, va_list dol)
 {
@@ -293,7 +293,7 @@ void vlc_LogSet (libvlc_int_t *vlc, vlc_log_cb cb, void *opaque)
 
     if (cb == NULL)
     {
-#if defined (HAVE_ISATTY) && !defined (WIN32)
+#if defined (HAVE_ISATTY) && !defined (_WIN32)
         if (isatty (STDERR_FILENO) && var_InheritBool (vlc, "color"))
             cb = PrintColorMsg;
         else
index 49974c6618e152b5e72b8c59e28a0d40e34bceb9..8e75313257c90ad754c1971d51b681b96eb3e172 100644 (file)
@@ -56,7 +56,7 @@
 # include <sys/socket.h>
 # include <netinet/in.h>
 # include <unistd.h>    // close(), write()
-#elif defined(WIN32)
+#elif defined(_WIN32)
 # include <io.h>
 # include <winsock2.h>
 # include <ws2tcpip.h>
@@ -287,7 +287,7 @@ static void vlc_object_destroy( vlc_object_t *p_this )
 }
 
 
-#if defined(WIN32) || defined(__OS2__)
+#if defined(_WIN32) || defined(__OS2__)
 /**
  * select()-able pipes emulated using Winsock
  */
@@ -329,7 +329,7 @@ error:
         close (c);
     return -1;
 }
-#endif /* WIN32 || __OS2__ */
+#endif /* _WIN32 || __OS2__ */
 
 static vlc_mutex_t pipe_lock = VLC_STATIC_MUTEX;
 
index c4fde538cf60b5daf36fbc1e8efdb8b44e1d509e..600e900262af2d6f6897f62ad5abe93ffc4e7ba3 100644 (file)
@@ -52,7 +52,7 @@
 
 #include <gcrypt.h>
 #include <vlc_gcrypt.h>
-#ifdef WIN32
+#ifdef _WIN32
 #include <shellapi.h>
 #endif
 #include "update.h"
@@ -74,9 +74,9 @@
  * Remaining text is a required description of the update
  */
 
-#if defined( WIN64 )
+#if defined( _WIN64 )
 # define UPDATE_OS_SUFFIX "-win-x64"
-#elif defined( WIN32 )
+#elif defined( _WIN32 )
 # define UPDATE_OS_SUFFIX "-win-x86"
 #else
 # define UPDATE_OS_SUFFIX ""
@@ -706,7 +706,7 @@ static void* update_DownloadReal( void *obj )
     msg_Info( p_udt, "%s authenticated", psz_destfile );
     free( p_hash );
 
-#ifdef WIN32
+#ifdef _WIN32
     int answer = dialog_Question( p_udt, _("Update VLC media player"),
     _("The new version was successfully downloaded. Do you want to close VLC and install it now?"),
     _("Install"), _("Cancel"), NULL);
index 27f89b4f0ee8ebafb8d0ede255f27d0d78e70fa6..6b5d247dfc36b65655285ce76057c4f97d6b93a7 100644 (file)
@@ -512,7 +512,7 @@ void CacheSave (vlc_object_t *p_this, const char *dir,
         goto out;
     }
 
-#if !defined( WIN32 ) && !defined( __OS2__ )
+#if !defined( _WIN32 ) && !defined( __OS2__ )
     vlc_rename (tmpname, filename); /* atomically replace old cache */
     fclose (file);
 #else
index 77b83de80df7e86dd36271560202aa37856d7879..05c9d293d550de418c24e422d4999352dbc17983 100644 (file)
@@ -27,7 +27,7 @@
 
 #ifdef ENABLE_NLS
 # include <libintl.h>
-# if defined (__APPLE__) || defined (WIN32) || defined(__OS2__)
+# if defined (__APPLE__) || defined (_WIN32) || defined(__OS2__)
 #  include <vlc_charset.h>
 # endif
 #endif
@@ -36,7 +36,7 @@ int vlc_bindtextdomain (const char *domain)
 {
 #if defined (ENABLE_NLS)
     /* Specify where to find the locales for current domain */
-# if !defined (__APPLE__) && !defined (WIN32) && !defined(__OS2__)
+# if !defined (__APPLE__) && !defined (_WIN32) && !defined(__OS2__)
     static const char path[] = LOCALEDIR;
 
     if (bindtextdomain (domain, path) == NULL)
index f76c47ce0594a65225ec419d849f66f82a9e97c5..bbfbd189817ec836b7240f649399910f5e17a9ef 100644 (file)
 # include <poll.h>
 #endif
 
-#if defined( WIN32 )
+#if defined( _WIN32 )
 #   include <winsock2.h>
 #else
 #   include <sys/socket.h>
 #endif
 
-#if defined( WIN32 )
+#if defined( _WIN32 )
 /* We need HUGE buffer otherwise TCP throughput is very limited */
 #define HTTPD_CL_BUFSIZE 1000000
 #else
@@ -1727,7 +1727,7 @@ static void httpd_ClientRecv( httpd_client_t *cl )
     }
 
     /* check if the client is to be set to dead */
-#if defined( WIN32 )
+#if defined( _WIN32 )
     if( ( i_len < 0 && WSAGetLastError() != WSAEWOULDBLOCK ) || ( i_len == 0 ) )
 #else
     if( ( i_len < 0 && errno != EAGAIN ) || ( i_len == 0 ) )
@@ -1866,7 +1866,7 @@ static void httpd_ClientSend( httpd_client_t *cl )
     }
     else
     {
-#if defined( WIN32 )
+#if defined( _WIN32 )
         if( ( i_len < 0 && WSAGetLastError() != WSAEWOULDBLOCK ) || ( i_len == 0 ) )
 #else
         if( ( i_len < 0 && errno != EAGAIN ) || ( i_len == 0 ) )
index 7cc9764ad4448a592db07c310186a51b081484b8..040e1e927ef146f46cf66b00c99e8dadeebf293a 100644 (file)
@@ -58,7 +58,7 @@
 #   define INADDR_NONE 0xFFFFFFFF
 #endif
 
-#if defined(WIN32)
+#if defined(_WIN32)
 # undef EAFNOSUPPORT
 # define EAFNOSUPPORT WSAEAFNOSUPPORT
 #endif
@@ -96,7 +96,7 @@ int net_Socket (vlc_object_t *p_this, int family, int socktype,
         setsockopt (fd, IPPROTO_IPV6, IPV6_V6ONLY, &(int){ 1 }, sizeof (int));
 #endif
 
-#if defined (WIN32)
+#if defined (_WIN32)
 # ifndef IPV6_PROTECTION_LEVEL
 #  warning Please update your C library headers.
 #  define IPV6_PROTECTION_LEVEL 23
@@ -159,7 +159,7 @@ int *net_Listen (vlc_object_t *p_this, const char *psz_host,
         }
 
         /* Bind the socket */
-#if defined (WIN32)
+#if defined (_WIN32)
         /*
          * Under Win32 and for multicasting, we bind to INADDR_ANY.
          * This is of course a severe bug, since the socket would logically
@@ -183,7 +183,7 @@ int *net_Listen (vlc_object_t *p_this, const char *psz_host,
         if (bind (fd, ptr->ai_addr, ptr->ai_addrlen))
         {
             net_Close (fd);
-#if !defined(WIN32)
+#if !defined(_WIN32)
             fd = rootwrap_bind (ptr->ai_family, ptr->ai_socktype,
                                 ptr->ai_protocol,
                                 ptr->ai_addr, ptr->ai_addrlen);
@@ -289,7 +289,7 @@ net_Read (vlc_object_t *restrict p_this, int fd, const v_socket_t *vs,
             if (ufd[1].revents)
             {
                 msg_Dbg (p_this, "socket %d polling interrupted", fd);
-#if defined(WIN32)
+#if defined(_WIN32)
                 WSASetLastError (WSAEINTR);
 #else
                 errno = EINTR;
@@ -301,14 +301,14 @@ net_Read (vlc_object_t *restrict p_this, int fd, const v_socket_t *vs,
         assert (ufd[0].revents);
 
         ssize_t n;
-#if defined(WIN32)
+#if defined(_WIN32)
         int error;
 #endif
         if (vs != NULL)
         {
             int canc = vlc_savecancel ();
             n = vs->pf_recv (vs->p_sys, p_buf, i_buflen);
-#if defined(WIN32)
+#if defined(_WIN32)
             /* We must read last error immediately, because vlc_restorecancel()
              * access thread local storage, and TlsGetValue() will call
              * SetLastError() to indicate that the function succeeded, thus
@@ -321,7 +321,7 @@ net_Read (vlc_object_t *restrict p_this, int fd, const v_socket_t *vs,
         }
         else
         {
-#ifdef WIN32
+#ifdef _WIN32
             n = recv (fd, p_buf, i_buflen, 0);
             error = WSAGetLastError();
 #else
@@ -331,7 +331,7 @@ net_Read (vlc_object_t *restrict p_this, int fd, const v_socket_t *vs,
 
         if (n == -1)
         {
-#if defined(WIN32)
+#if defined(_WIN32)
             switch (error)
             {
                 case WSAEWOULDBLOCK:
@@ -449,7 +449,7 @@ ssize_t net_Write( vlc_object_t *p_this, int fd, const v_socket_t *p_vs,
         if (p_vs != NULL)
             val = p_vs->pf_send (p_vs->p_sys, p_data, i_data);
         else
-#ifdef WIN32
+#ifdef _WIN32
             val = send (fd, p_data, i_data, 0);
 #else
             val = write (fd, p_data, i_data);
index 3d3229fb7fa7e2baf0e09c7abb395296e51a9bc0..f04bd82cce3e04815ca41e2fac17a52f697bb8cf 100644 (file)
@@ -24,7 +24,7 @@
 
 #define _XPG4_2 /* ancilliary data on Solaris */
 
-#if !defined (WIN32) && !defined (__OS2__)
+#if !defined (_WIN32) && !defined (__OS2__)
 # define ENABLE_ROOTWRAP 1
 #endif
 
index fd8f738bb078418b699e84ccffbbc9ecaecafe2c..61159e0fd267e5c252777d346a93bc21bb4c34d5 100644 (file)
@@ -43,7 +43,7 @@
 #endif
 
 #include <vlc_network.h>
-#if defined (WIN32)
+#if defined (_WIN32)
 #   undef EINPROGRESS
 #   define EINPROGRESS WSAEWOULDBLOCK
 #   undef EWOULDBLOCK
index 6763f10a399c4f94529a14e3d512cca0b73fd059..c83145f4784ed87b2d4e908322915b7f3f38bd45 100644 (file)
@@ -38,7 +38,7 @@
 
 #include <vlc_network.h>
 
-#ifdef WIN32
+#ifdef _WIN32
 #   define EAFNOSUPPORT WSAEAFNOSUPPORT
 #else
 #   include <unistd.h>
@@ -104,7 +104,7 @@ static int net_SetupDgramSocket (vlc_object_t *p_obj, int fd,
                 (void *)&(int){ 0x80000 }, sizeof (int));
 #endif
 
-#if defined (WIN32)
+#if defined (_WIN32)
     if (net_SockAddrIsMulticast (ptr->ai_addr, ptr->ai_addrlen)
      && (sizeof (struct sockaddr_storage) >= ptr->ai_addrlen))
     {
@@ -553,7 +553,7 @@ int net_ConnectDgram( vlc_object_t *p_this, const char *psz_host, int i_port,
             break;
         }
 
-#if defined( WIN32 )
+#if defined( _WIN32 )
         if( WSAGetLastError () == WSAENETUNREACH )
 #else
         if( errno == ENETUNREACH )
index aa4ded33a03809f076ea5465927daac9f87397ec..a9eb65b5d6415ec8b7d5cca4e62b76bc0e5501f3 100644 (file)
@@ -232,7 +232,7 @@ int SAP_Add (sap_handler_t *p_sap, session_descriptor_t *p_session)
 
     switch (addr.a.sa_family)
     {
-#if defined (HAVE_INET_PTON) || defined (WIN32)
+#if defined (HAVE_INET_PTON) || defined (_WIN32)
         case AF_INET6:
         {
             /* See RFC3513 for list of valid IPv6 scopes */
index 25e5fab38012be376cace413e3e9d0d4634f23b9..3f653f1ff902de3bd4a11fcb66608d234a5bfa53 100644 (file)
@@ -609,7 +609,7 @@ static int mrl_Parse( mrl_t *p_mrl, const char *psz_mrl )
             psz_parser++;
         }
     }
-#if defined( WIN32 ) || defined( __OS2__ )
+#if defined( _WIN32 ) || defined( __OS2__ )
     if( psz_parser - psz_dup == 1 )
     {
         /* msg_Warn( p_sout, "drive letter %c: found in source string",
index 5b643145d14f4907bdf877b14053dfa96e0760dc..0cb2322654e4360ab770af91c155fe60e5ffb32d 100644 (file)
@@ -29,7 +29,7 @@
 
 #include <vlc_common.h>
 
-#if !defined WIN32
+#if !defined _WIN32
 # include <locale.h>
 #else
 # include <windows.h>
index d5d02f45218e22cf020f40c815e67fed7de9c266..d7db759a4ed02f29f406465b8b93eabd169861de 100644 (file)
@@ -907,7 +907,7 @@ void filename_sanitize( char *str )
  */
 void path_sanitize( char *str )
 {
-#if defined( WIN32 ) || defined( __OS2__ )
+#if defined( _WIN32 ) || defined( __OS2__ )
     /* check drive prefix if path is absolute */
     if( (((unsigned char)(str[0] - 'A') < 26)
       || ((unsigned char)(str[0] - 'a') < 26)) && (':' == str[1]) )
@@ -918,7 +918,7 @@ void path_sanitize( char *str )
 #if defined( __APPLE__ )
         if( *str == ':' )
             *str = '_';
-#elif defined( WIN32 ) || defined( __OS2__ )
+#elif defined( _WIN32 ) || defined( __OS2__ )
         if( strchr( "*\"?:|<>", *str ) )
             *str = '_';
         if( *str == '/' )
index d1de73918a2054c096b9d690df8c83a6078349fc..25215d7ffc0934d12a20c935ca2ee9dcaa74b4f9 100644 (file)
@@ -39,7 +39,7 @@
 #include <stdarg.h>
 #include <stdlib.h>
 #include <sys/types.h>
-#if defined(WIN32)
+#if defined(_WIN32)
 #  include <io.h>
 #endif
 #include <errno.h>
@@ -51,7 +51,7 @@
  */
 int utf8_vfprintf( FILE *stream, const char *fmt, va_list ap )
 {
-#ifndef WIN32
+#ifndef _WIN32
     return vfprintf (stream, fmt, ap);
 #else
     char *str;
index d564811f042578d13e43d6ab2dff8ebb0ccac962..06fb8177577dfe74b8b61bb523a64585da11384e 100644 (file)
@@ -26,7 +26,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <assert.h>
-#ifdef WIN32
+#ifdef _WIN32
 # include <io.h>
 #endif
 
@@ -170,7 +170,7 @@ char *vlc_path2uri (const char *path, const char *scheme)
     path = p;
 #endif
 
-#if defined( WIN32 ) || defined( __OS2__ )
+#if defined( _WIN32 ) || defined( __OS2__ )
     /* Drive letter */
     if (isalpha ((unsigned char)path[0]) && (path[1] == ':'))
     {
@@ -186,7 +186,7 @@ char *vlc_path2uri (const char *path, const char *scheme)
 #endif
     if (!strncmp (path, "\\\\", 2))
     {   /* Windows UNC paths */
-#if !defined( WIN32 ) && !defined( __OS2__ )
+#if !defined( _WIN32 ) && !defined( __OS2__ )
         if (scheme != NULL)
             return NULL; /* remote files not supported */
 
@@ -302,7 +302,7 @@ char *make_path (const char *url)
 
     if (schemelen == 4 && !strncasecmp (url, "file", 4))
     {
-#if !defined (WIN32) && !defined (__OS2__)
+#if !defined (_WIN32) && !defined (__OS2__)
         /* Leading slash => local path */
         if (*path == '/')
             return path;
@@ -336,7 +336,7 @@ char *make_path (const char *url)
         if (*end)
             goto out;
 
-#if !defined( WIN32 ) && !defined( __OS2__ )
+#if !defined( _WIN32 ) && !defined( __OS2__ )
         switch (fd)
         {
             case 0:
@@ -490,7 +490,7 @@ void vlc_UrlClean (vlc_url_t *restrict url)
 
 #if defined (HAVE_IDN)
 # include <idna.h>
-#elif defined (WIN32)
+#elif defined (_WIN32)
 # include <windows.h>
 # include <vlc_charset.h>
 #endif
@@ -509,7 +509,7 @@ static char *vlc_idna_to_ascii (const char *idn)
         return NULL;
     return adn;
 
-#elif defined (WIN32) && (_WIN32_WINNT >= 0x0601)
+#elif defined (_WIN32) && (_WIN32_WINNT >= 0x0601)
     char *ret = NULL;
 
     wchar_t *wide = ToWide (idn);
index d6f86d9c2b49b5818499fdd78e635f5d64c0cd7b..8bcb118fed347b4541e252f30ef039688e84cc25 100644 (file)
@@ -39,7 +39,7 @@
 /*****************************************************************************
  * Local prototypes
  *****************************************************************************/
-#ifdef WIN32
+#ifdef _WIN32
 static int  Forward(vlc_object_t *, char const *,
                     vlc_value_t, vlc_value_t, void *);
 #endif
@@ -73,7 +73,7 @@ int vout_OpenWrapper(vout_thread_t *vout,
     }
 
     /* */
-#ifdef WIN32
+#ifdef _WIN32
     var_Create(vout, "video-wallpaper", VLC_VAR_BOOL|VLC_VAR_DOINHERIT);
     var_AddCallback(vout, "video-wallpaper", Forward, NULL);
 #endif
@@ -91,7 +91,7 @@ void vout_CloseWrapper(vout_thread_t *vout, vout_display_state_t *state)
 {
     vout_thread_sys_t *sys = vout->p;
 
-#ifdef WIN32
+#ifdef _WIN32
     var_DelCallback(vout, "video-wallpaper", Forward, NULL);
 #endif
     sys->decoder_pool = NULL; /* FIXME remove */
@@ -201,7 +201,7 @@ void vout_ManageWrapper(vout_thread_t *vout)
     }
 }
 
-#ifdef WIN32
+#ifdef _WIN32
 static int Forward(vlc_object_t *object, char const *var,
                    vlc_value_t oldval, vlc_value_t newval, void *data)
 {
index 4f1951fea4a422afac6ce613e7cea1bddd19881c..b351936e989518fd27d8e58c0abc1bfcfcc6ed93 100644 (file)
@@ -64,7 +64,7 @@ vout_window_t *vout_window_New(vlc_object_t *obj,
 
     const char *type;
     switch (cfg->type) {
-#if defined(WIN32) || defined(__OS2__)
+#if defined(_WIN32) || defined(__OS2__)
     case VOUT_WINDOW_TYPE_HWND:
         type = "vout window hwnd";
         window->handle.hwnd = NULL;