Updating branch refs/heads/master
         to f44666af1ba7ea87e7b34072b403821194bd70df (commit)
       from 46fe74aec7fe45a331424d86aee411b087094382 (commit)

commit f44666af1ba7ea87e7b34072b403821194bd70df
Author: Harald Judt <h.j...@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>
 
_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
https://mail.xfce.org/mailman/listinfo/xfce4-commits

Reply via email to