[libbluray-devel] macro.h: remove unused HEX_PRINT

hpi1 git at videolan.org
Thu Nov 6 10:49:25 CET 2014


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Thu Nov  6 10:52:58 2014 +0200| [c2b25cf3dbf233ab5131c014e869bc893f1c9e39] | committer: hpi1

macro.h: remove unused HEX_PRINT

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

 src/libbluray/bluray.c |    1 +
 src/util/macro.h       |    2 --
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index 04d9b76..02c2554 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -49,6 +49,7 @@
 #include "file/libbdplus.h"
 #include "file/libaacs.h"
 
+#include <stdio.h> // SEEK_
 #include <stdlib.h>
 #include <inttypes.h>
 #include <string.h>
diff --git a/src/util/macro.h b/src/util/macro.h
index 47dea24..dd6067a 100644
--- a/src/util/macro.h
+++ b/src/util/macro.h
@@ -21,10 +21,8 @@
 #ifndef MACRO_H_
 #define MACRO_H_
 
-#include <stdio.h>   /* fprintf() */
 #include <stdlib.h>  /* free() */
 
-#define HEX_PRINT(X,Y) { int zz; for(zz = 0; zz < Y; zz++) fprintf(stderr, "%02X", X[zz]); fprintf(stderr, "\n"); }
 #define MKINT_BE16(X) ( (X)[0] << 8 | (X)[1] )
 #define MKINT_BE24(X) ( (X)[0] << 16 | (X)[1] << 8 | (X)[2] )
 #define MKINT_BE32(X) ( (X)[0] << 24 | (X)[1] << 16 |  (X)[2] << 8 | (X)[3] )



More information about the libbluray-devel mailing list