[glib: 1/5] gutils: Remove dead code used for Windows SDK versions



commit fe01e813260b2b3f2972519bdbd4c362470a1fa2
Author: Nirbheek Chauhan <nirbheek centricular com>
Date:   Mon Aug 19 14:18:19 2019 +0530

    gutils: Remove dead code used for Windows SDK versions
    
    We require a newer SDK version now, so this is not needed.
    Specifically, we set _WIN32_WINNT to 0x0601, which sets our SDK
    requirement to Windows 7+, and this code is only needed for MSVC 5.0,
    which is ancient.

 glib/gutils.c | 22 ----------------------
 1 file changed, 22 deletions(-)
---
diff --git a/glib/gutils.c b/glib/gutils.c
index 62a64d912..988d0a599 100644
--- a/glib/gutils.c
+++ b/glib/gutils.c
@@ -95,28 +95,6 @@
 #ifdef G_OS_WIN32
 #  include <direct.h>
 #  include <shlobj.h>
-   /* older SDK (e.g. msvc 5.0) does not have these*/
-#  ifndef CSIDL_MYMUSIC
-#    define CSIDL_MYMUSIC 13
-#  endif
-#  ifndef CSIDL_MYVIDEO
-#    define CSIDL_MYVIDEO 14
-#  endif
-#  ifndef CSIDL_INTERNET_CACHE
-#    define CSIDL_INTERNET_CACHE 32
-#  endif
-#  ifndef CSIDL_COMMON_APPDATA
-#    define CSIDL_COMMON_APPDATA 35
-#  endif
-#  ifndef CSIDL_MYPICTURES
-#    define CSIDL_MYPICTURES 0x27
-#  endif
-#  ifndef CSIDL_COMMON_DOCUMENTS
-#    define CSIDL_COMMON_DOCUMENTS 46
-#  endif
-#  ifndef CSIDL_PROFILE
-#    define CSIDL_PROFILE 40
-#  endif
 #  include <process.h>
 #endif
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]