Giter Club home page Giter Club logo

Comments (3)

jstone-lucasfilm avatar jstone-lucasfilm commented on May 28, 2024

Many thanks for this detailed report, Rob. If there are OSX targets where <cstdlib> is not brought into Library.h through other standard headers, then it seems appropriate for us to explicitly include <cstdlib> in Library.h as well.

If we were to move forward with that approach, then the fix would simply be the addition of a <cstdlib> include just after <algorithm> in Library.h.

from materialx.

robpieke avatar robpieke commented on May 28, 2024

Yep, abandoning my previous suggestion in favour of adding to Library.h works as well (I've tested this).

diff --git a/source/MaterialXCore/Library.h b/source/MaterialXCore/Library.h
index 125fdb2..5459ccb 100644
--- a/source/MaterialXCore/Library.h
+++ b/source/MaterialXCore/Library.h
@@ -18,6 +18,7 @@
 #include <string>
 #include <unordered_map>
 #include <vector>
+#include <cstdlib>
 
 namespace MaterialX
 {

from materialx.

jstone-lucasfilm avatar jstone-lucasfilm commented on May 28, 2024

Thanks for the report, and this should be addressed in the latest master.

from materialx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.