Skip to content

Commit

Permalink
fix to interface better with C++
Browse files Browse the repository at this point in the history
Signed-off-by: Petr Štetiar <[email protected]>
  • Loading branch information
gwell authored and ynezz committed Sep 11, 2009
1 parent 033970e commit 1d6d618
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/luace.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,15 @@
#define _LUACE_H_

#ifdef UNDER_CE

#if defined(LUA_CORE) || defined(LUA_LIB) || defined(lua_c)
#include <wce_stdio.h>
#include <wce_stdlib.h>
#include <wce_string.h>
#include <wce_time.h>
#include <wce_locale.h>
#include <wce_winbase.h>
#endif

#ifndef BUFSIZ
#define BUFSIZ 1024
Expand All @@ -46,6 +49,7 @@
#define L_tmpnam MAX_PATH
#endif

#if defined(LUA_CORE) || defined(LUA_LIB) || defined(lua_c)
#ifndef getenv
#define getenv wceex_getenv
#endif
Expand Down Expand Up @@ -148,6 +152,7 @@
#define SIG_DFL 0
#define SIGINT 0
#define _isatty(x) 1
#endif

#endif /* UNDER_CE */

Expand Down

0 comments on commit 1d6d618

Please sign in to comment.