New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[patch] ext/Win32/Win32.xs compilation fails on msvc < 6 #9028
Comments
From dk@tetsuo.karasik.eu.orgCreated by dk@tetsuo.karasik.eu.orgA patch for smoke, fixes compilation on older msvc versions: Inline Patch--- /home/dk/src/perl-current/ext/Win32/Win32.xs 2007-06-26 11:10:49.000000000 +0200
+++ ./Win32.xs 2007-09-17 10:49:43.000000000 +0200
@@ -43,6 +43,13 @@
# define CSIDL_FLAG_CREATE 0x8000
#endif
+#ifndef CSIDL_COMMON_FAVORITES
+# define CSIDL_COMMON_FAVORITES 0x001F
+# define CSIDL_INTERNET_CACHE 0x0020
+# define CSIDL_COOKIES 0x0021
+# define CSIDL_HISTORY 0x0022
+#endif
+
#ifndef CSIDL_ADMINTOOLS
# define CSIDL_ADMINTOOLS 0x0030
# define CSIDL_COMMON_ADMINTOOLS 0x002F Perl Info
|
From @steve-m-hayHow about the attached patch? This incorporates the #defines apparently required for MSVC < 6, and |
From @steve-m-haywin32xs.patch==== //depot/perl/ext/Win32/Win32.xs#5 - c:\p5p\bleadperl\ext\Win32\Win32.xs ====
@@ -39,46 +39,71 @@
typedef void* (__stdcall *PFNFreeSid)(PSID);
typedef BOOL (__stdcall *PFNIsUserAnAdmin)();
-#ifndef CSIDL_FLAG_CREATE
-# define CSIDL_FLAG_CREATE 0x8000
+#ifndef CSIDL_MYMUSIC
+# define CSIDL_MYMUSIC 0x000D
+#endif
+#ifndef CSIDL_MYVIDEO
+# define CSIDL_MYVIDEO 0x000E
+#endif
+#ifndef CSIDL_LOCAL_APPDATA
+# define CSIDL_LOCAL_APPDATA 0x001C
+#endif
+#ifndef CSIDL_COMMON_FAVORITES
+# define CSIDL_COMMON_FAVORITES 0x001F
+#endif
+#ifndef CSIDL_INTERNET_CACHE
+# define CSIDL_INTERNET_CACHE 0x0020
+#endif
+#ifndef CSIDL_COOKIES
+# define CSIDL_COOKIES 0x0021
+#endif
+#ifndef CSIDL_HISTORY
+# define CSIDL_HISTORY 0x0022
#endif
-
-#ifndef CSIDL_ADMINTOOLS
-# define CSIDL_ADMINTOOLS 0x0030
-# define CSIDL_COMMON_ADMINTOOLS 0x002F
+#ifndef CSIDL_COMMON_APPDATA
# define CSIDL_COMMON_APPDATA 0x0023
-# define CSIDL_COMMON_DOCUMENTS 0x002E
-# define CSIDL_COMMON_TEMPLATES 0x002D
-# define CSIDL_LOCAL_APPDATA 0x001C
+#endif
+#ifndef CSIDL_WINDOWS
+# define CSIDL_WINDOWS 0x0024
+#endif
+#ifndef CSIDL_PROGRAM_FILES
+# define CSIDL_PROGRAM_FILES 0x0026
+#endif
+#ifndef CSIDL_MYPICTURES
# define CSIDL_MYPICTURES 0x0027
+#endif
+#ifndef CSIDL_PROFILE
# define CSIDL_PROFILE 0x0028
-# define CSIDL_PROGRAM_FILES 0x0026
+#endif
+#ifndef CSIDL_PROGRAM_FILES_COMMON
# define CSIDL_PROGRAM_FILES_COMMON 0x002B
-# define CSIDL_WINDOWS 0x0024
+#endif
+#ifndef CSIDL_COMMON_TEMPLATES
+# define CSIDL_COMMON_TEMPLATES 0x002D
+#endif
+#ifndef CSIDL_COMMON_DOCUMENTS
+# define CSIDL_COMMON_DOCUMENTS 0x002E
+#endif
+#ifndef CSIDL_COMMON_ADMINTOOLS
+# define CSIDL_COMMON_ADMINTOOLS 0x002F
#endif
-
-#ifndef CSIDL_CDBURN_AREA
-# define CSIDL_CDBURN_AREA 0x003B
+#ifndef CSIDL_ADMINTOOLS
+# define CSIDL_ADMINTOOLS 0x0030
#endif
-
#ifndef CSIDL_COMMON_MUSIC
# define CSIDL_COMMON_MUSIC 0x0035
#endif
-
#ifndef CSIDL_COMMON_PICTURES
# define CSIDL_COMMON_PICTURES 0x0036
#endif
-
#ifndef CSIDL_COMMON_VIDEO
# define CSIDL_COMMON_VIDEO 0x0037
#endif
-
-#ifndef CSIDL_MYMUSIC
-# define CSIDL_MYMUSIC 0x000D
+#ifndef CSIDL_CDBURN_AREA
+# define CSIDL_CDBURN_AREA 0x003B
#endif
-
-#ifndef CSIDL_MYVIDEO
-# define CSIDL_MYVIDEO 0x000E
+#ifndef CSIDL_FLAG_CREATE
+# define CSIDL_FLAG_CREATE 0x8000
#endif
/* Use explicit struct definition because wSuiteMask and
|
The RT System itself - Status changed from 'new' to 'open' |
From dk@tetsuo.karasik.eu.orgOn Tue, Sep 18, 2007 at 01:12:57AM -0700, Steve Hay via RT wrote:
That's even better, of course. -- |
From @steve-m-hayI've now applied the revised patch to bleadperl as #31900 (with a |
From [Unknown Contact. See original ticket]I've now applied the revised patch to bleadperl as #31900 (with a |
@steve-m-hay - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#45493 (status was 'resolved')
Searchable as RT45493$
The text was updated successfully, but these errors were encountered: