From 7ca06c7c5a0ae4bb38a67948a03ad8585f925707 Mon Sep 17 00:00:00 2001 From: Markus Grüneis Date: Wed, 11 Nov 2009 20:35:10 +0000 Subject: fixed header file include guards to be C++ compliant; now always use format ANYTUN__INCLUDED --- src/win32/common.h | 4 ++++ src/win32/registryKey.h | 6 +++++- src/win32/winService.h | 6 +++--- 3 files changed, 12 insertions(+), 4 deletions(-) (limited to 'src/win32') diff --git a/src/win32/common.h b/src/win32/common.h index 5aaab20..eaab2a6 100644 --- a/src/win32/common.h +++ b/src/win32/common.h @@ -25,6 +25,8 @@ * distribution); if not, write to the Free Software Foundation, Inc., * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#ifndef ANYTUN_win32_common_h_INCLUDED +#define ANYTUN_win32_common_h_INCLUDED //=============================================== // This file is included both by OpenVPN and @@ -80,3 +82,5 @@ //========================================================= #define TAP_COMPONENT_ID "tap0901" + +#endif diff --git a/src/win32/registryKey.h b/src/win32/registryKey.h index 734bfd6..6aceba0 100644 --- a/src/win32/registryKey.h +++ b/src/win32/registryKey.h @@ -29,6 +29,8 @@ * You should have received a copy of the GNU General Public License * along with anytun. If not, see . */ +#ifndef ANYTUN_win32_registryKey_h_INCLUDED +#define ANYTUN_win32_registryKey_h_INCLUDED #include #include @@ -55,4 +57,6 @@ private: HKEY key_; bool opened_; std::string name_; -}; \ No newline at end of file +}; + +#endif diff --git a/src/win32/winService.h b/src/win32/winService.h index c46d3d0..6867c7c 100644 --- a/src/win32/winService.h +++ b/src/win32/winService.h @@ -30,8 +30,8 @@ * along with anytun. If not, see . */ -#ifndef _WIN_SERVICE_H_ -#define _WIN_SERVICE_H_ +#ifndef ANYTUN_win32_winService_h_INCLUDED +#define ANYTUN_win32_winService_h_INCLUDED #ifdef WIN_SERVICE @@ -79,4 +79,4 @@ extern WinService& gWinService; #endif -#endif \ No newline at end of file +#endif -- cgit v1.2.3