Skip to content

Commit

Permalink
api: Restore OIIO_NAMESPACE_USING
Browse files Browse the repository at this point in the history
This got lost with the 2-level namespace changes in #4567, but is used by
e.g. OpenUSD. Might as well not break the API here.

Signed-off-by: Brecht Van Lommel <[email protected]>
  • Loading branch information
brechtvl committed Jan 22, 2025
1 parent 2677d4c commit 2f5fd3c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/include/OpenImageIO/oiioversion.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ namespace OIIO = @PROJ_NAMESPACE@;
#define OIIO_NAMESPACE_3_0_BEGIN namespace OIIO_NAMESPACE_3_0 {
#define OIIO_NAMESPACE_3_0_END }

// Macro to use names without explicit qualifier
#define OIIO_NAMESPACE_USING using namespace @PROJ_NAMESPACE@::@PROJ_VERSION_NAMESPACE@;


/// Each imageio DSO/DLL should include this statement:
/// DLLPUBLIC int FORMAT_imageio_version = OPENIMAGEIO_PLUGIN_VERSION;
Expand Down

0 comments on commit 2f5fd3c

Please sign in to comment.