diff options
Diffstat (limited to 'odb/details/posix/tls.hxx')
-rw-r--r-- | odb/details/posix/tls.hxx | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/odb/details/posix/tls.hxx b/odb/details/posix/tls.hxx index 6e11a64..92b0f4b 100644 --- a/odb/details/posix/tls.hxx +++ b/odb/details/posix/tls.hxx @@ -6,6 +6,8 @@ #ifndef ODB_DETAILS_POSIX_TLS_HXX #define ODB_DETAILS_POSIX_TLS_HXX +#include <odb/pre.hxx> + #include <pthread.h> namespace odb @@ -69,23 +71,23 @@ namespace odb template <typename T> inline T& - tls_get (const tls<T>& s) + tls_get (const tls<T>& t) { - return s.get (); + return t.get (); } template <typename T> inline T* - tls_get (const tls<T*>& s) + tls_get (const tls<T*>& t) { - return s.get (); + return t.get (); } template <typename T> inline void - tls_set (tls<T*>& s, T* p) + tls_set (tls<T*>& t, T* p) { - return s.set (p); + t.set (p); } } } @@ -93,4 +95,6 @@ namespace odb #include <odb/details/posix/tls.ixx> #include <odb/details/posix/tls.txx> +#include <odb/post.hxx> + #endif // ODB_DETAILS_POSIX_TLS_HXX |