From 7193823df82bc710a6560d0607acdbf0af9da770 Mon Sep 17 00:00:00 2001 From: stevenj Date: Thu, 17 Jun 2010 19:47:43 -0400 Subject: [PATCH] guard against multiple inclusion in nlopt.hpp; thanks to Saul Thurrowgood for the suggestion darcs-hash:20100617234743-c8de0-d51fc34a1b673496e780c40c6f9dcde6b8e94f93.gz --- api/nlopt-in.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/api/nlopt-in.hpp b/api/nlopt-in.hpp index 8e09347..acb2dd1 100644 --- a/api/nlopt-in.hpp +++ b/api/nlopt-in.hpp @@ -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 #include @@ -467,3 +470,5 @@ namespace nlopt { ////////////////////////////////////////////////////////////////////// } // namespace nlopt + +#endif /* NLOPT_HPP */ -- 2.30.2