FIX BUILD on non-Windows
authorSimon Marlow <marlowsd@gmail.com>
Mon, 8 Sep 2008 14:24:14 +0000 (14:24 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Mon, 8 Sep 2008 14:24:14 +0000 (14:24 +0000)
rts/Linker.c

index 26d671e..3735a2e 100644 (file)
@@ -1091,16 +1091,17 @@ addDLL( char *dll_name )
    opened_dlls     = o_dll;
 
    return NULL;
-#  else
-   barf("addDLL: not implemented on this platform");
-#  endif
 
 error:
    stgFree(buf);
    sysErrorBelch(dll_name);
-               
+
    /* LoadLibrary failed; return a ptr to the error msg. */
    return "addDLL: could not load DLL";
+
+#  else
+   barf("addDLL: not implemented on this platform");
+#  endif
 }
 
 /* -----------------------------------------------------------------------------