Re: Review: Visual Studio 2010 compile fix Edit


Richard Shaw <hobbe...@...>
 

On Tue, Dec 18, 2012 at 8:20 AM, Richard Shaw <hobbe...@...> wrote:
I'm not sure if this is causing any issues:

diff --git a/src/core/PathUtils.cpp b/src/core/PathUtils.cpp
index a04ecee..4c944b1 100644
--- a/src/core/PathUtils.cpp
+++ b/src/core/PathUtils.cpp
@@ -49,10 +49,14 @@
#if defined(__APPLE__) && !defined(__IPHONE__)
#include <crt_externs.h> // _NSGetEnviron()
#elif !defined(WINDOWS)
-#include <unistd.h>
extern char **environ;
#endif

+#include <unistd.h>
+#if defined(__clang__)
+#include <unistd.h>
+#endif
I can confirm removing this commit fixes compilation on linux. I
haven't done any detailed analysis to see if there's any other
differences in the resultant package though.

Richard

Join {ocio-dev@lists.aswf.io to automatically receive all group messages.