aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2009-06-08 07:14:53 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2009-06-08 07:14:53 +0000
commit8c6c56d9e6ea6f6f81793f786970966a5cade35c (patch)
treeb767ab30b3327869b8b3fd6a1d50d248b94f5ef5
parent573bb9189c42b9c7c21c0faa06dbd3c2c6c6de17 (diff)
complain if the hexloader is being used but has been compiled without dlopen/dll support
svn path=/trunk/externals/loaders/hexloader/; revision=11711
-rw-r--r--hexloader.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/hexloader.c b/hexloader.c
index 48c0c35..f11e722 100644
--- a/hexloader.c
+++ b/hexloader.c
@@ -1,4 +1,6 @@
-/* Copyright (c) 2007 IOhannes m zmölnig @ IEM
+/*
+ * hexloader
+ * Copyright (c) 2007-2009 IOhannes m zmölnig @ IEM
* For information on usage and redistribution, and for a DISCLAIMER OF ALL
* WARRANTIES, see the file, "LICENSE.txt," that comes with Pd.
*/
@@ -545,6 +547,8 @@ static int hexloader_doload(char*filename, char*setupfun) {
return (0);
}
makeout = (t_hexloader_setup)GetProcAddress(ntdll, setupfun);
+#else
+ error("alas! somebody (you?) has compiled [hexloader] without support for loading externals...how should i load?");
#endif
if (!makeout)