ges-pitivi-formatter: Remove some unneeded includes and clean up includes
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 28 May 2013 06:51:08 +0000 (08:51 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 28 May 2013 06:51:08 +0000 (08:51 +0200)
Fixes the build on Windows, where there's no unistd.h... which wasn't
needed at all.

https://bugzilla.gnome.org/show_bug.cgi?id=701115

ges/ges-pitivi-formatter.c

index c9e1f55..b7417ac 100644 (file)
 #include <libxml/parser.h>
 #include <libxml/xpath.h>
 #include <libxml/xpathInternals.h>
-#include "libxml/encoding.h"
-#include "libxml/xmlwriter.h"
+#include <libxml/encoding.h>
+#include <libxml/xmlwriter.h>
 
 #include "ges-internal.h"
 #include <ges/ges.h>
-#include <inttypes.h>
-#include <unistd.h>
-#define GetCurrentDir getcwd
 
 /* The PiTiVi etree formatter is 0.1 we set GES one to 0.2 */
 #define VERSION "0.2"
@@ -131,7 +128,7 @@ static void inline
 write_int_attribute (xmlTextWriterPtr writer, guint64 nb, const gchar * attr,
     const gchar * type)
 {
-  gchar *str = g_strdup_printf ("%s%" PRIu64, type, nb);
+  gchar *str = g_strdup_printf ("%s%" G_GUINT64_FORMAT, type, nb);
   xmlTextWriterWriteAttribute (writer, BAD_CAST attr, BAD_CAST str);
   g_free (str);
 }