Skip to content

Commit

Permalink
Add missing log4cplus/version.h include
Browse files Browse the repository at this point in the history
Currently, the logging.h header checks the LOG4CPLUS_VERSION macro to
determine whether to use std::auto_ptr or std::unique_ptr. However, the
LOG4CPLUS_VERSION macro is defined in log4cplus/version.h, which is not
explicitlyincluded from logging.h. Explicitly include
log4cplus/version.h to ensure that the LOG4CPLUS_VERSION macro is
defined.

Signed-off-by: Violet Purcell <[email protected]>
  • Loading branch information
vimproved committed Jul 11, 2023
1 parent f81d1aa commit a37b0a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions openvdb/openvdb/util/logging.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <log4cplus/layout.h>
#include <log4cplus/logger.h>
#include <log4cplus/spi/loggingevent.h>
#include <log4cplus/version.h>
#include <algorithm> // for std::remove()
#include <cstring> // for ::strrchr()
#include <memory>
Expand Down

0 comments on commit a37b0a1

Please sign in to comment.