cemcen / Delynoi

An object-oriented C++ library for the generation of polygonal meshes
18 stars 8 forks source link

Cross-platform compilation #2

Closed CsatiZoltan closed 5 years ago

CsatiZoltan commented 5 years ago

Your library compiles on Windows with a tiny change. In triangle.c, before the conditional inclusion

#ifndef NO_TIMER
#include <sys/time.h>
#endif /* not NO_TIMER */

I inserted #define NO_TIMER to be able to compile on Windows. Maybe this definition can be included from within CMakeLists (I don't really know CMake). If you can solve it, your library will work on another platform as well!

CsatiZoltan commented 5 years ago

Fixed by the proposed pull request.