Other winefile fixes

Richard Cohen richard.cohen at virgin.net
Wed Aug 13 08:25:10 CDT 2003


Francois's patch gets it to compile. This one gets it to run :-)
It also now compiles under winegcc.

Dimi, I have some patches for winegcc/winewrap.  Are you working on it 
at the moment, or should I just send them to wine-patches?

Richard.

Changelog:

	Use __WINE instead of _WINE_, _WIN32


-------------- next part --------------
diff -u -r programs/winefile/Makefile.in programs/winefile/Makefile.in
--- programs/winefile/Makefile.in	2003-08-13 12:23:15.000000000 +0100
+++ programs/winefile/Makefile.in	2003-08-13 14:05:33.000000000 +0100
@@ -14,6 +14,7 @@
 	winefile.c
 
 RC_SRCS = rsrc.rc
+EXTRARCFLAGS = -D__WINE__
 
 @MAKE_PROG_RULES@
 
diff -u -r programs/winefile/resource.rc programs/winefile/resource.rc
--- programs/winefile/resource.rc	2002-06-04 22:29:40.000000000 +0100
+++ programs/winefile/resource.rc	2003-08-13 14:03:54.000000000 +0100
@@ -29,7 +29,7 @@
 }
 
 IDI_WINEFILE ICON DISCARDABLE
-#ifdef _WIN32
+#ifndef __WINE__
  "winefile.ico"
 #else
 {
@@ -85,7 +85,7 @@
 #endif
 
 IDB_TOOLBAR BITMAP DISCARDABLE
-#ifdef _WIN32
+#ifndef __WINE__
  "toolbar.bmp"
 #else
 {
@@ -153,7 +153,7 @@
 #endif
 
 IDB_DRIVEBAR BITMAP DISCARDABLE
-#ifdef _WIN32
+#ifndef __WINE__
  "drivebar.bmp"
 #else
 {
@@ -208,7 +208,7 @@
 #endif
 
 IDB_IMAGES BITMAP DISCARDABLE
-#ifdef _WIN32
+#ifndef __WINE__
  "images.bmp"
 #else
 {
diff -u -r programs/winefile/winefile.c programs/winefile/winefile.c
--- programs/winefile/winefile.c	2003-08-13 13:12:32.000000000 +0100
+++ programs/winefile/winefile.c	2003-08-13 14:12:23.000000000 +0100
@@ -18,7 +18,7 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
-#ifndef _WIN32
+#ifdef __WINE__
 #include "config.h"
 #include "wine/port.h"
 #endif
@@ -30,10 +30,12 @@
 #include "resource.h"
 
 /* for read_directory_unix() */
-#if !defined(_NO_EXTENSIONS) && !defined(_WIN32)
+#if !defined(_NO_EXTENSIONS) && defined(__WINE__)
 #include <dirent.h>
 #include <sys/stat.h>
-#include <unistd.h>
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif
 #include <time.h>
 #endif
 
@@ -1822,7 +1824,7 @@
 				/*TODO: There are even more menu items! */
 
 #ifndef _NO_EXTENSIONS
-#ifdef _WINE_
+#ifdef __WINE__
 				case ID_LICENSE:
 					WineLicense(Globals.hMainWnd);
 					break;
@@ -3643,7 +3645,7 @@
 
 	ShowWindow(Globals.hMainWnd, cmdshow);
 
-#if defined(_SHELL_FOLDERS) && !defined(_WINE_)
+#if defined(_SHELL_FOLDERS) && !defined(__WINE__)
 	 /* Shell Namespace as default: */
 	child = alloc_child_window(path, get_path_pidl(path,Globals.hMainWnd), Globals.hMainWnd);
 #else


More information about the wine-patches mailing list