summaryrefslogtreecommitdiff
path: root/src/win32
diff options
context:
space:
mode:
authorMarkus Grüneis <gimpf@gimpf.org>2009-11-11 20:35:10 +0000
committerMarkus Grüneis <gimpf@gimpf.org>2009-11-11 20:35:10 +0000
commit7ca06c7c5a0ae4bb38a67948a03ad8585f925707 (patch)
tree3b6c04f5c3deb795f48d8419c7420e1820eacb59 /src/win32
parentadded hidden ebuid-compat option to configure script (diff)
fixed header file include guards to be C++ compliant; now always use format ANYTUN_<filename>_INCLUDED
Diffstat (limited to 'src/win32')
-rw-r--r--src/win32/common.h4
-rw-r--r--src/win32/registryKey.h6
-rw-r--r--src/win32/winService.h6
3 files changed, 12 insertions, 4 deletions
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 <http://www.gnu.org/licenses/>.
*/
+#ifndef ANYTUN_win32_registryKey_h_INCLUDED
+#define ANYTUN_win32_registryKey_h_INCLUDED
#include <string.h>
#include <windows.h>
@@ -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 <http://www.gnu.org/licenses/>.
*/
-#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