Skip to content

Commit b82f349

Browse files
authored
fix(api): Restore definition of OIIO_NAMESPACE_USING macro (#4920)
Version 3.1 removed this definition, thinking it was safe because we didn't use it anywhere, didn't document it, and what it expands to (`using namespace OIIO`) isn't any longer than the macro name, so is pointless to use. But downstream projects did use it. Oops. Signed-off-by: Larry Gritz <[email protected]>
1 parent 046b20f commit b82f349

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/include/OpenImageIO/oiioversion.h.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ namespace OIIO = @PROJ_NAMESPACE@;
144144
// Macros to declare things in the current version's inline namespace.
145145
#define OIIO_NAMESPACE_BEGIN namespace @PROJ_NAMESPACE@ { inline namespace @PROJ_VERSION_NAMESPACE@ {
146146
#define OIIO_NAMESPACE_END } }
147+
#define OIIO_NAMESPACE_USING using namespace OIIO;
147148
#define OIIO_CURRENT_NAMESPACE @PROJ_NAMESPACE@::@PROJ_VERSION_NAMESPACE@
148149

149150
#include <OpenImageIO/nsversions.h>

0 commit comments

Comments
 (0)