Visual C++ 8 warning fixes

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10229 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2008-02-02 00:52:14 +00:00
commit df83cef573
6 changed files with 15 additions and 6 deletions

View file

@ -5,8 +5,8 @@ CXXSRCS = example2_wrap.cxx
INTERFACE = dual.i
LUA_INTERP = dual.cpp
# this is a little different ot normal as we need to static link two modules and a custom intepreter
# we need the external runtime, then swig examples2, and build the module as normal
# This is a little different to normal as we need to static link two modules and a custom interpreter
# We need the external runtime, then swig examples2, and build the module as normal
all::
$(SWIG) -lua -external-runtime
$(SWIG) -c++ -lua $(SWIGOPT) example2.i
@ -15,6 +15,7 @@ all::
clean::
$(MAKE) -f $(TOP)/Makefile lua_clean
rm -f swigluarun.h
check: all

View file

@ -23,11 +23,11 @@ the two modules are now linked together, and all can now find
both Foo and Bar.
*/
#include "swigluarun.h" // the swig runtimes
#include <stdio.h>
#include <stdlib.h>
#include "swigluarun.h" // the swig runtimes
// the 2 libraries which are wrappered via SWIG
extern "C" int luaopen_example(lua_State*L);
extern "C" int luaopen_example2(lua_State*L);