From 6cd461633d0da9003e03a0e198f4055e37a137a9 Mon Sep 17 00:00:00 2001
From: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date: Wed, 7 Dec 2005 13:42:32 -0200
Subject: clearer error message for uninstalled loadlib

---
 loadlib.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

(limited to 'loadlib.c')

diff --git a/loadlib.c b/loadlib.c
index 286c220c..2979a9da 100644
--- a/loadlib.c
+++ b/loadlib.c
@@ -1,5 +1,5 @@
 /*
-** $Id: loadlib.c,v 1.47 2005/10/06 20:46:10 roberto Exp roberto $
+** $Id: loadlib.c,v 1.48 2005/10/17 18:01:51 roberto Exp roberto $
 ** Dynamic library loader for Lua
 ** See Copyright Notice in lua.h
 **
@@ -236,11 +236,8 @@ static lua_CFunction ll_sym (lua_State *L, void *lib, const char *sym) {
 #define LIB_FAIL	"absent"
 
 
-#if defined(__ELF__) || defined(__sun) || defined(sgi) || defined(__hpux)
-#define DLMSG LUA_QL("loadlib") " not enabled; check your Lua installation"
-#else
-#define DLMSG		LUA_QL("loadlib") " not supported"
-#endif
+#define DLMSG	"dynamic libraries not enabled; check your Lua installation"
+
 
 static void ll_unloadlib (void *lib) {
   (void)lib;  /* to avoid warnings */
-- 
cgit v1.2.3-55-g6feb