[libbluray-devel] Changed header order (include macro.h after refcnt.h)

hpi1 git at videolan.org
Thu Jun 20 15:07:02 CEST 2013


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Thu Jun 20 16:06:00 2013 +0300| [0041a1fc43e6f09eaa1fe1158e90e240fc3f5aec] | committer: hpi1

Changed header order (include macro.h after refcnt.h)
Added check for this.

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=0041a1fc43e6f09eaa1fe1158e90e240fc3f5aec
---

 src/libbluray/decoders/rle.h |    2 +-
 src/util/refcnt.h            |    4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/libbluray/decoders/rle.h b/src/libbluray/decoders/rle.h
index 7286591..824a344 100644
--- a/src/libbluray/decoders/rle.h
+++ b/src/libbluray/decoders/rle.h
@@ -40,8 +40,8 @@ typedef struct {
  *
  */
 
-#include "util/macro.h"
 #include "util/refcnt.h"
+#include "util/macro.h"
 
 static void rle_begin(RLE_ENC *p)
 {
diff --git a/src/util/refcnt.h b/src/util/refcnt.h
index 421ab5c..c230345 100644
--- a/src/util/refcnt.h
+++ b/src/util/refcnt.h
@@ -24,6 +24,10 @@
 
 #include <sys/types.h>
 
+#ifdef MACRO_H_
+#  error macro.h included before refcnt.h
+#endif
+
 /*
  * Reference-counted memory blocks.
  *



More information about the libbluray-devel mailing list