[Xfce4-commits] <xfce4-weather-plugin:master> Fix compilation warning due to a #define in the wrong place.
Harald Judt
noreply at xfce.org
Mon Jul 16 16:26:01 CEST 2012
Updating branch refs/heads/master
to f44666af1ba7ea87e7b34072b403821194bd70df (commit)
from 46fe74aec7fe45a331424d86aee411b087094382 (commit)
commit f44666af1ba7ea87e7b34072b403821194bd70df
Author: Harald Judt <h.judt at gmx.at>
Date: Mon Jul 16 16:20:22 2012 +0200
Fix compilation warning due to a #define in the wrong place.
Without going into nasty details, using #define _XOPEN_SOURCE only
works if it is put before all other #includes.
panel-plugin/weather-parsers.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/panel-plugin/weather-parsers.c b/panel-plugin/weather-parsers.c
index 6136f32..a3c9911 100644
--- a/panel-plugin/weather-parsers.c
+++ b/panel-plugin/weather-parsers.c
@@ -15,13 +15,14 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#define _XOPEN_SOURCE
+
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "weather-parsers.h"
#include <libxfce4panel/libxfce4panel.h>
-#define _XOPEN_SOURCE
#include <time.h>
#include <stdlib.h>
More information about the Xfce4-commits
mailing list