How are we supposed to handle includes from other libs (while compiling
Wine) which use FAR?

I don't like the idea of #undef FAR, then #include, then #undef FAR and
#define FAR do_not_use_this_in_wine. Somebody have a better idea?

This prevents proper compilation on Fedora Core 1 for now (when openssl
is used), because the krb5 includes use FAR.

Vincent
Index: dlls/wininet/internet.h
===================================================================
RCS file: /home/wine/wine/dlls/wininet/internet.h,v
retrieving revision 1.17
diff -u -r1.17 internet.h
--- dlls/wininet/internet.h	14 Oct 2003 05:27:43 -0000	1.17
+++ dlls/wininet/internet.h	11 Nov 2003 23:07:23 -0000
@@ -33,7 +33,10 @@
 #endif
 #ifdef HAVE_OPENSSL_SSL_H
 #define DSA __ssl_DSA  /* avoid conflict with commctrl.h */
+#undef FAR
 # include <openssl/ssl.h>
+#undef FAR
+#define FAR do_not_use_this_in_wine
 #undef DSA
 #endif
 #ifdef HAVE_SYS_SOCKET_H

Reply via email to