[libvirt-php][PATCH 04/11] libvirt-php.c: Move system headers together

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



And at the same time switch from "header.h" notation to
<header.h>.

Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
---
 configure.ac      | 1 +
 src/libvirt-php.c | 5 +++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 8d52862..f232756 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4,6 +4,7 @@ AC_CONFIG_HEADERS([config.h])
 AC_CONFIG_MACRO_DIR([m4])
 AM_INIT_AUTOMAKE([-Wall -Werror -Wno-portability])
 AM_MAINTAINER_MODE([enable])
+AC_GNU_SOURCE
 
 m4_ifndef([LT_INIT], [
   AM_PROG_LIBTOOL
diff --git a/src/libvirt-php.c b/src/libvirt-php.c
index 951375f..6b145de 100644
--- a/src/libvirt-php.c
+++ b/src/libvirt-php.c
@@ -18,14 +18,15 @@
 #define EXTWIN
 #endif
 
-#include "stdafx.h"
+#include <config.h>
+#include <stdio.h>
+#include <stdafx.h>
 
 #ifdef EXTWIN
 #define PHP_COMPILER_ID  "VC9"
 #endif
 
 #include "libvirt-php.h"
-#include "stdio.h"
 
 #ifndef EXTWIN
 // From vncfunc.c
-- 
2.8.4

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]