Skip to content

Commit fd94317

Browse files
brechtvlzachlewis
authored andcommitted
api: Restore OIIO_NAMESPACE_USING (AcademySoftwareFoundation#4603)
This got lost with the 2-level namespace changes in AcademySoftwareFoundation#4567, but is used by e.g. OpenUSD. Might as well not break the API here. Signed-off-by: Brecht Van Lommel <[email protected]>
1 parent 99a3ce0 commit fd94317

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/include/OpenImageIO/oiioversion.h.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,9 @@ namespace OIIO = @PROJ_NAMESPACE@;
178178
#define OIIO_NAMESPACE_3_0_BEGIN namespace OIIO_NAMESPACE_3_0 {
179179
#define OIIO_NAMESPACE_3_0_END }
180180

181+
// Macro to use names without explicit qualifier
182+
#define OIIO_NAMESPACE_USING using namespace @PROJ_NAMESPACE@::@PROJ_VERSION_NAMESPACE@;
183+
181184

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

0 commit comments

Comments
 (0)