From: Jean-Baptiste Kempf Date: Thu, 24 Jan 2008 06:53:27 +0000 (+0000) Subject: Qt4 - Fix Compilation on CYGWin. This is a quick fix but not a solution. Again, MOC... X-Git-Tag: 0.9.0-test0~3251 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=5d9c12fbc07dc5e80082ebed7b0d0c17838c5701;p=vlc Qt4 - Fix Compilation on CYGWin. This is a quick fix but not a solution. Again, MOC isn't given HAVE_CONFIG_H so it can't understand ENABLE_VLM or ENABLE_UPDATE. MOCFLAGs would fix that ? --- diff --git a/modules/gui/qt4/Modules.am b/modules/gui/qt4/Modules.am index 9b2970ecd1..48d3cfb74d 100644 --- a/modules/gui/qt4/Modules.am +++ b/modules/gui/qt4/Modules.am @@ -112,7 +112,8 @@ SOURCES_qt4 = qt4.cpp \ components/playlist/playlist.cpp \ components/playlist/selector.cpp \ util/input_slider.cpp \ - util/customwidgets.cpp + util/customwidgets.cpp \ + util/registry.cpp noinst_HEADERS = \ qt4.hpp \ @@ -147,7 +148,8 @@ noinst_HEADERS = \ components/playlist/selector.hpp \ util/input_slider.hpp \ util/customwidgets.hpp \ - util/qvlcframe.hpp + util/qvlcframe.hpp \ + util/registry.cpp EXTRA_DIST += \ res.qrc \ diff --git a/modules/gui/qt4/dialogs/help.hpp b/modules/gui/qt4/dialogs/help.hpp index e0fc292e20..f5fae30e5f 100644 --- a/modules/gui/qt4/dialogs/help.hpp +++ b/modules/gui/qt4/dialogs/help.hpp @@ -24,11 +24,7 @@ #ifndef _HELP_DIALOG_H_ #define _HELP_DIALOG_H_ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - -#include +#include "config.h" #include "util/qvlcframe.hpp" diff --git a/modules/gui/qt4/dialogs/vlm.hpp b/modules/gui/qt4/dialogs/vlm.hpp index 356d72fb1e..92f02bd212 100644 --- a/modules/gui/qt4/dialogs/vlm.hpp +++ b/modules/gui/qt4/dialogs/vlm.hpp @@ -25,15 +25,14 @@ #ifndef _VLM_DIALOG_H_ #define _VLM_DIALOG_H_ -#ifdef HAVE_CONFIG_H # include "config.h" -#endif #include -#ifdef ENABLE_VLM #include +#ifdef ENABLE_VLM + #include "ui/vlm.h" #include "util/qvlcframe.hpp" diff --git a/modules/gui/qt4/util/registry.cpp b/modules/gui/qt4/util/registry.cpp index bafcf9c278..91b8de3303 100644 --- a/modules/gui/qt4/util/registry.cpp +++ b/modules/gui/qt4/util/registry.cpp @@ -1,7 +1,26 @@ -// License GPLv2 or later -// COde by atmo -// -#error your license text is wrong and copyright is missing +/***************************************************************************** + * registry.cpp: Windows Registry Manipulation + **************************************************************************** + * Copyright (C) 2008 the VideoLAN team + * $Id: input_slider.cpp 24525 2008-01-23 21:50:58Z courmisch $ + * + * Authors: Andre Weber + * + * This program 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., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. + *****************************************************************************/ + #ifdef HAVE_CONFIG_H # include "config.h" #endif diff --git a/modules/gui/qt4/util/registry.hpp b/modules/gui/qt4/util/registry.hpp index c3032bd786..6bc82bd0e0 100644 --- a/modules/gui/qt4/util/registry.hpp +++ b/modules/gui/qt4/util/registry.hpp @@ -1,6 +1,25 @@ -// License GPLv2 or later -// Code from ATMO - +/***************************************************************************** + * registry.hpp: Windows Registry Manipulation + **************************************************************************** + * Copyright (C) 2008 the VideoLAN team + * $Id: input_slider.cpp 24525 2008-01-23 21:50:58Z courmisch $ + * + * Authors: Andre Weber + * + * This program 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., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. + *****************************************************************************/ #ifndef QVLC_REGISTRY_H #define QVLC_REGISTRY_H @@ -23,8 +42,8 @@ public: char * ReadRegistryString(char *path, char *valueName, char *default_value); double ReadRegistryDouble(char *path, char *valueName, double default_value); - int RegistryKeyExists(char *path); - int RegistryValueExists(char *path, char *valueName); + bool RegistryKeyExists(char *path); + bool RegistryValueExists(char *path, char *valueName); }; #endif