]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/intlGUIEditBox.cpp
Fix & make linux conditionals uniform (#4278)
[dragonfireclient.git] / src / intlGUIEditBox.cpp
index 4add61e207acfd75420a394b7bb445be26d28a06..29f82807653a11340535fc1555b764a7b020c7c4 100644 (file)
 //       after  program initialization....
 //
 
-// Copyright (C) 2002-2010 Nikolaus Gebhardt
+// Copyright (C) 2002-2013 Nikolaus Gebhardt
 // This file is part of the "Irrlicht Engine".
 // For conditions of distribution and use, see copyright notice in irrlicht.h
 
 #include "intlGUIEditBox.h"
 
-#ifdef _IRR_COMPILE_WITH_GUI_
+#if defined(_IRR_COMPILE_WITH_GUI_) && IRRLICHT_VERSION_MAJOR == 1 && IRRLICHT_VERSION_MINOR < 9
 
 #include "IGUISkin.h"
 #include "IGUIEnvironment.h"
@@ -41,6 +41,7 @@
 //#include "irrlicht/os.cpp"
 #include "porting.h"
 //#include "Keycodes.h"
+#include "log.h"
 
 /*
        todo:
@@ -270,7 +271,7 @@ bool intlGUIEditBox::OnEvent(const SEvent& event)
                        break;
                case EET_KEY_INPUT_EVENT:
         {
-#if defined(linux)
+#if (defined(__linux__) || defined(__FreeBSD__))
             // ################################################################
                        // ValkaTR:
             // This part is the difference from the original intlGUIEditBox