summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2007-07-16 11:53:15 +0000
committerpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2007-07-16 11:53:15 +0000
commitff5db0ed1e897540217b378a691c6f3601c6243c (patch)
treed0bf11d5ae39d2d5c5a2371e041ca34e4507eac2
parent6a48a6cc9b6b37c55e0dae5f847a23a5d343be49 (diff)
Use colours.h in win_wrapper and also add __COLOURS_H define.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7444 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--win/colours.h6
-rw-r--r--win/inspircd_win32wrapper.cpp1
2 files changed, 7 insertions, 0 deletions
diff --git a/win/colours.h b/win/colours.h
index f30142bf9..6a71d7853 100644
--- a/win/colours.h
+++ b/win/colours.h
@@ -11,6 +11,9 @@
* ---------------------------------------------------
*/
+#ifndef __COLOURS_H
+#define __COLOURS_H
+
#define TRED FOREGROUND_RED | FOREGROUND_INTENSITY
#define TGREEN FOREGROUND_GREEN | FOREGROUND_INTENSITY
#define TYELLOW FOREGROUND_GREEN | FOREGROUND_RED | FOREGROUND_INTENSITY
@@ -92,3 +95,6 @@ int printf_c(const char * format, ...)
return c;
}
+
+#endif
+
diff --git a/win/inspircd_win32wrapper.cpp b/win/inspircd_win32wrapper.cpp
index 3a929d09e..9ca4fd7c9 100644
--- a/win/inspircd_win32wrapper.cpp
+++ b/win/inspircd_win32wrapper.cpp
@@ -12,6 +12,7 @@
*/
#include "inspircd_win32wrapper.h"
+#include "colours.h"
#include "inspircd.h"
#include <string>
#include <errno.h>