projectchrono/chrono — pull request #24 by tingnan (2014-08-10 19:51:27+00:00)
Title: Cascade unit and other fix in C::E

With the current change in API, the cascade unit will not compile directly, so I fixed all the compile time errors.

Also, ChGlobal.cpp will not compile under mac os x with gcc, because both __CNUC__ and __APPLE__ are defined.

src/physics/ChGlobal.cpp View
@@ -53,8 +53,11 @@ int GetUniqueIntID()
#endif

#if defined(__GNUC__)
- static volatile int id = first_id;
- return __sync_add_and_fetch(&id, 1);
+ #if defined(__APPLE__)
+ #else
+ static volatile int id = first_id;
+ return __sync_add_and_fetch(&id, 1);
+ #endif
#endif
}