From: stevenj Date: Thu, 17 Jun 2010 23:47:43 +0000 (-0400) Subject: guard against multiple inclusion in nlopt.hpp; thanks to Saul Thurrowgood for the... X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=7193823df82bc710a6560d0607acdbf0af9da770;p=nlopt.git guard against multiple inclusion in nlopt.hpp; thanks to Saul Thurrowgood for the suggestion darcs-hash:20100617234743-c8de0-d51fc34a1b673496e780c40c6f9dcde6b8e94f93.gz --- 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 */