-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8bc0893
commit 94ca40a
Showing
2 changed files
with
41 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,20 +69,29 @@ diff -Naur alembic-1.7.9.orig/lib/Alembic/AbcCoreOgawa/ReadUtil.cpp alembic-1.7. | |
diff -Naur alembic-1.7.9.orig/lib/Alembic/AbcCoreOgawa/StreamManager.cpp alembic-1.7.9/lib/Alembic/AbcCoreOgawa/StreamManager.cpp | ||
--- alembic-1.7.9.orig/lib/Alembic/AbcCoreOgawa/StreamManager.cpp 2018-10-12 17:05:37.151983900 -0400 | ||
+++ alembic-1.7.9/lib/Alembic/AbcCoreOgawa/StreamManager.cpp 2018-10-12 17:08:47.009950000 -0400 | ||
@@ -46,10 +46,10 @@ | ||
#if !defined( ALEMBIC_LIB_USES_TR1 ) && __cplusplus >= 201103L | ||
@@ -46,7 +46,7 @@ | ||
#if __cplusplus >= 201103L | ||
#define COMPARE_EXCHANGE( V, COMP, EXCH ) V.compare_exchange_weak( COMP, EXCH, std::memory_order_seq_cst, std::memory_order_seq_cst ) | ||
// Windows | ||
-#elif defined( _MSC_VER ) | ||
+#elif defined( _WIN32 ) | ||
#define COMPARE_EXCHANGE( V, COMP, EXCH ) (InterlockedCompareExchange64( &V, EXCH, COMP ) == COMP) | ||
#elif defined( __HAIKU__ ) | ||
|
||
@@ -61,10 +61,10 @@ | ||
#error Please contact [email protected] for support. | ||
#endif | ||
|
||
-#ifdef _MSC_VER | ||
+#ifdef _WIN32 | ||
|
||
#ifdef _WIN64 | ||
-Alembic::Util::int64_t ffsll( Alembic::Util::int64_t iValue ) | ||
+Alembic::Util::int64_t __builtin_ffsll( Alembic::Util::int64_t iValue ) | ||
{ | ||
if ( !iValue ) | ||
{ | ||
@@ -138,7 +138,7 @@ | ||
unsigned long index = 0; | ||
_BitScanForward64(&index, iValue); | ||
@@ -130,7 +130,7 @@ | ||
do | ||
{ | ||
oldVal = m_streams; | ||
|
@@ -121,14 +130,6 @@ diff -Naur alembic-1.7.9.orig/lib/Alembic/Ogawa/IStreams.cpp alembic-1.7.9/lib/A | |
diff -Naur alembic-1.7.9.orig/lib/Alembic/Util/Foundation.h alembic-1.7.9/lib/Alembic/Util/Foundation.h | ||
--- alembic-1.7.9.orig/lib/Alembic/Util/Foundation.h 2018-10-12 17:05:37.058224500 -0400 | ||
+++ alembic-1.7.9/lib/Alembic/Util/Foundation.h 2018-10-12 17:10:58.673701400 -0400 | ||
@@ -51,7 +51,6 @@ | ||
#include <boost/foreach.hpp> | ||
#include <boost/unordered_map.hpp> | ||
|
||
-// tr1 is not available in older versions of Visual Studio i.e. _MSC_VER <= 1600 | ||
#elif defined(ALEMBIC_LIB_USES_TR1) | ||
#include <tr1/memory> | ||
#include <tr1/unordered_map> | ||
@@ -83,7 +82,7 @@ | ||
|
||
#include <Alembic/Util/Export.h> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters