From 515b99ca7aa343e99adc130ecf88036cb0cb5e57 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Thu, 16 Sep 2010 02:41:38 +0200 Subject: Making LuaOCCI using the new OCCI-gateway system. --- include/LuaOCCI.h | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'include') diff --git a/include/LuaOCCI.h b/include/LuaOCCI.h index af446a6..b271bbb 100644 --- a/include/LuaOCCI.h +++ b/include/LuaOCCI.h @@ -1,22 +1,28 @@ #ifndef __LUAOCCI_H__ #define __LUAOCCI_H__ -#include - #include #include +#ifdef __MINGW32__ +#include "OCCI-proxy.h" +#define ORAPREFIX occi_proxy +#else +#include +#define ORAPREFIX oracle::occi +#endif + #define DECLARE_OCCI_ENCAP(clname) \ class EncapOCCI_##clname : public Base { \ public: \ - EncapOCCI_##clname(oracle::occi::clname * _o) : o(_o) { } \ + EncapOCCI_##clname(ORAPREFIX::clname * _o) : o(_o) { } \ ~EncapOCCI_##clname() { } \ - oracle::occi::clname * Get() { return o; } \ + ORAPREFIX::clname * Get() { return o; } \ bool disableExceptions; \ String lastError_msg; \ int lastError_code; \ private: \ - oracle::occi::clname * o; \ + ORAPREFIX::clname * o; \ }; \ \ class LuaOCCI_##clname : public LuaObject { \ -- cgit v1.2.3