"strcoll" may not exist in ond ansi machines

This commit is contained in:
Roberto Ierusalimschy 1998-01-14 11:49:15 -02:00
parent 44ace0aefd
commit b9acf4b4af

7
lvm.c
View File

@ -1,5 +1,5 @@
/*
** $Id: lvm.c,v 1.21 1997/12/30 19:08:23 roberto Exp roberto $
** $Id: lvm.c,v 1.22 1998/01/12 13:35:37 roberto Exp roberto $
** Lua virtual machine
** See Copyright Notice in lua.h
*/
@ -22,6 +22,11 @@
#include "lvm.h"
#ifdef OLD_ANSI
#define strcoll(a,b) strcmp(a,b)
#endif
#define skip_word(pc) (pc+=2)
#define get_word(pc) (*(pc)+(*((pc)+1)<<8))
#define next_word(pc) (pc+=2, get_word(pc-2))