[Spice-devel] [PATCH libcacard 1/3] Include glib.h in public header

Marc-André Lureau marcandre.lureau at gmail.com
Thu Nov 19 04:30:36 PST 2015


vscard_common.h uses glib G_BYTE_ORDER macros. Include glib.h in the
file, and thus move glib-2.0 as a Require package.

Signed-off-by: Marc-André Lureau <marcandre.lureau at gmail.com>
---
 libcacard.pc.in     | 3 ++-
 src/vscard_common.h | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/libcacard.pc.in b/libcacard.pc.in
index 5bd2b2a..70410e2 100644
--- a/libcacard.pc.in
+++ b/libcacard.pc.in
@@ -6,6 +6,7 @@ includedir=@includedir@
 Name: cacard
 Description: CA Card library
 Version: @PACKAGE_VERSION@
-Requires.private: nss glib-2.0
+Requires: glib-2.0
+Requires.private: nss
 Libs: -L${libdir} -lcacard
 Cflags: -I${includedir}/cacard
diff --git a/src/vscard_common.h b/src/vscard_common.h
index 879cfab..f2a18e1 100644
--- a/src/vscard_common.h
+++ b/src/vscard_common.h
@@ -23,6 +23,7 @@
 #define VSCARD_COMMON_H
 
 #include <stdint.h>
+#include <glib.h>
 
 #define VERSION_MAJOR_BITS 11
 #define VERSION_MIDDLE_BITS 11
-- 
2.5.0



More information about the Spice-devel mailing list