]> git.jsancho.org Git - lugaru.git/blobdiff - Source/WinInput.cpp
Added GPL license and headers.
[lugaru.git] / Source / WinInput.cpp
index 856bf12a6b601b2ea90dcc41036fdff4ff498c72..53a55986a79fa26d10f26fd8d2120bcd6c193d52 100644 (file)
@@ -1,6 +1,34 @@
+/*
+Copyright (C) 2003, 2010 - Wolfire Games
+
+This file is part of Lugaru.
+
+Lugaru is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License
+as published by the Free Software Foundation; either version 2
+of the License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
+
+See the GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+*/
+
 /**> HEADER FILES <**/
 #include "WinInput.h"
+
+#ifdef WIN32
 #include "String.h"
+#else
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#endif
 
 extern bool keyboardfrozen;
 extern bool buttons[3];
@@ -986,4 +1014,4 @@ bool       Compare(char *thestring, char *tocompare, int start, int end)
                if(thestring[i]!=tocompare[i-start]&&thestring[i]!=tocompare[i-start]+'A'-'a')return 0;
        }
        return 1;
-}
\ No newline at end of file
+}