Skip to content

Commit

Permalink
VC10 supports C99 it has stdint.h .
Browse files Browse the repository at this point in the history
  • Loading branch information
U-SHACNG933W0PQ\Bo authored and U-SHACNG933W0PQ\Bo committed Mar 28, 2013
1 parent 31a7d95 commit 346e1c7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions openvdb_1_0_0_library/openvdb/Platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@

/// Visual C++ does not have stdint.h which defines types like uint64_t.
/// So for portability we instead include boost/cstdint.hpp.

#if _MSC_VER < 1600
#include <boost/cstdint.hpp>
using boost::int8_t;
using boost::int16_t;
Expand All @@ -92,6 +94,9 @@ using boost::uint8_t;
using boost::uint16_t;
using boost::uint32_t;
using boost::uint64_t;
#else
#include <cstdint>
#endif

/// Helper macros for defining library symbol visibility
#ifdef OPENVDB_EXPORT
Expand Down

0 comments on commit 346e1c7

Please sign in to comment.