libragephoto: put C++ wrapper in ragephoto_c namespace

This commit is contained in:
Syping 2024-04-05 19:46:12 +02:00
parent eadec52f35
commit 0fa69667d0
2 changed files with 4 additions and 6 deletions

View File

@ -34,12 +34,12 @@ typedef ragephoto::photo RagePhoto;
typedef ragephoto::photo RagePhoto; typedef ragephoto::photo RagePhoto;
#else #else
#include "ragephoto_c.hpp" #include "ragephoto_c.hpp"
typedef ragephoto::c_wrapper::photo RagePhoto; typedef ragephoto_c::photo RagePhoto;
#endif // LIBRAGEPHOTO_PREFER_NATIVE #endif // LIBRAGEPHOTO_PREFER_NATIVE
#endif // LIBRAGEPHOTO_STATIC #endif // LIBRAGEPHOTO_STATIC
#elif defined LIBRAGEPHOTO_C_ONLY #elif defined LIBRAGEPHOTO_C_ONLY
#include "ragephoto_c.hpp" #include "ragephoto_c.hpp"
typedef ragephoto::c_wrapper::photo RagePhoto; typedef ragephoto_c::photo RagePhoto;
#else #else
#error "Could not determine best RagePhoto implementation, libragephoto installation might be corrupt!" #error "Could not determine best RagePhoto implementation, libragephoto installation might be corrupt!"
#endif // LIBRAGEPHOTO_CXX_ONLY #endif // LIBRAGEPHOTO_CXX_ONLY

View File

@ -24,8 +24,7 @@
#include <cstdlib> #include <cstdlib>
#include <iostream> #include <iostream>
namespace ragephoto { namespace ragephoto_c {
namespace c_wrapper {
/** /**
* \brief GTA V and RDR 2 Photo Parser (C API wrapper). * \brief GTA V and RDR 2 Photo Parser (C API wrapper).
@ -346,8 +345,7 @@ private:
ragephoto_t instance; ragephoto_t instance;
}; };
} // c_wrapper } // ragephoto_c
} // ragephoto
#endif // __cplusplus #endif // __cplusplus
#endif // RAGEPHOTO_C_HPP #endif // RAGEPHOTO_C_HPP