소스 검색

auxliar support for "locale" (to avoid portability problems)

Roberto Ierusalimschy 29 년 전
부모
커밋
1a17211707
1개의 변경된 파일23개의 추가작업 그리고 0개의 파일을 삭제
  1. 23 0
      lualoc.h

+ 23 - 0
lualoc.h

@@ -0,0 +1,23 @@
+/*
+** lualoc.h
+** TecCGraf - PUC-Rio
+** $Id: $
+*/
+
+#ifndef lualoc_h
+#define lualoc_h
+
+#ifndef OLD_ANSI
+#include <locale.h>
+#else
+#define	strcoll(a,b)	strcmp(a,b)
+#define setlocale(a,b)	0
+#define LC_ALL		0
+#define LC_COLLATE	0
+#define LC_CTYPE	0
+#define LC_MONETARY	0
+#define LC_NUMERIC	0
+#define LC_TIME		0
+#endif
+
+#endif