+
+/* for basename */
+#ifdef HAVE_LIBGEN_H
+# include <libgen.h>
+#eles
+#include "plbasename.h"
+#endif
#ifdef WIN32
#include "strftime.h"
#ifdef WIN32
#include "strftime.h"
#endif
#include "rrd_tool.h"
#endif
#include "rrd_tool.h"
#include <cairo-ps.h>
#include <pango/pangocairo.h>
#include <cairo-ps.h>
#include <pango/pangocairo.h>
-#ifdef HAVE_LIBGEN_H
-/* for basename */
-# include <libgen.h>
-#endif
#include "rrd_tool.h"
#include "rrd_rpncalc.h"
#include "rrd_tool.h"
#include "rrd_rpncalc.h"