chiark / gitweb /
guard against multiple inclusion in nlopt.hpp; thanks to Saul Thurrowgood for the...
authorstevenj <stevenj@alum.mit.edu>
Thu, 17 Jun 2010 23:47:43 +0000 (19:47 -0400)
committerstevenj <stevenj@alum.mit.edu>
Thu, 17 Jun 2010 23:47:43 +0000 (19:47 -0400)
darcs-hash:20100617234743-c8de0-d51fc34a1b673496e780c40c6f9dcde6b8e94f93.gz

api/nlopt-in.hpp

index 8e09347d5a9f7a0d76caa76a5b870112f1ccd0d0..acb2dd1b57c2fa8dd3b1ca028a3ea71bdc9bc327 100644 (file)
@@ -23,6 +23,9 @@
 // C++ style wrapper around NLopt API
 // nlopt.hpp is AUTOMATICALLY GENERATED from nlopt-in.hpp - edit the latter!
 
+#ifndef NLOPT_HPP
+#define NLOPT_HPP
+
 #include <nlopt.h>
 
 #include <vector>
@@ -467,3 +470,5 @@ namespace nlopt {
   //////////////////////////////////////////////////////////////////////
 
 } // namespace nlopt
+
+#endif /* NLOPT_HPP */