diff: imp.h bug fix
Fergus Henderson
fjh at cs.mu.oz.au
Tue Sep 30 23:28:14 AEST 1997
runtime/imp.h:
Fix a bug in the ordering of the #include statements
that caused problems when using DLLs on Windows.
Index: imp.h
===================================================================
RCS file: /home/staff/zs/imp/mercury/runtime/imp.h,v
retrieving revision 1.112
diff -u -u -r1.112 imp.h
--- imp.h 1997/08/28 18:21:04 1.112
+++ imp.h 1997/09/23 23:43:20
@@ -20,6 +20,12 @@
#define IMP_H
/*
+** The #include of "conf.h" must come before the `#ifdef USE_DLLS',
+** because conf.h defines the USE_DLLS macro.
+*/
+#include "conf.h"
+
+/*
** The following must come before any definitions of global variables.
** This is necessary to support DLLs on Windows.
*/
@@ -28,8 +34,6 @@
#endif
#include "regs.h" /* must come before system headers */
-
-#include "conf.h"
#include "std.h"
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh> | of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3 | -- the last words of T. S. Garp.
More information about the developers
mailing list