summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makerules2
-rw-r--r--apps/pdfapp.c2
-rw-r--r--fitz/fitz_stream.h11
-rw-r--r--fitz/stm_read.c6
4 files changed, 2 insertions, 19 deletions
diff --git a/Makerules b/Makerules
index 64863d85..1d828e6f 100644
--- a/Makerules
+++ b/Makerules
@@ -10,7 +10,7 @@ LD := $(CC)
AR := ar
ifeq "$(build)" "debug"
-CFLAGS += -g -O0 -DDEBUG
+CFLAGS += -g -O0
endif
ifeq "$(build)" "release"
diff --git a/apps/pdfapp.c b/apps/pdfapp.c
index 6eec1b8f..416cddef 100644
--- a/apps/pdfapp.c
+++ b/apps/pdfapp.c
@@ -617,7 +617,7 @@ void pdfapp_onkey(pdfapp_t *app, int c)
pdfapp_showpage(app, 0, 1);
break;
-#ifdef DEBUG
+#ifndef NDEBUG
case 'a':
app->rotate -= 15;
pdfapp_showpage(app, 0, 1);
diff --git a/fitz/fitz_stream.h b/fitz/fitz_stream.h
index 8cbff89c..c425d7c8 100644
--- a/fitz/fitz_stream.h
+++ b/fitz/fitz_stream.h
@@ -372,15 +372,6 @@ fz_buffer * fz_readall(fz_stream *stm, int sizehint);
fz_error fz_readerror(fz_stream *stm);
int fz_readbytex(fz_stream *stm);
int fz_peekbytex(fz_stream *stm);
-void fz_unreadbytex(fz_stream *stm);
-
-#ifdef DEBUG
-
-#define fz_readbyte fz_readbytex
-#define fz_peekbyte fz_peekbytex
-#define fz_unreadbyte fz_unreadbytex
-
-#else
static inline int fz_readbyte(fz_stream *stm)
{
@@ -405,5 +396,3 @@ static inline void fz_unreadbyte(fz_stream *stm)
}
#endif
-
-#endif
diff --git a/fitz/stm_read.c b/fitz/stm_read.c
index b01e300d..9f6b45a5 100644
--- a/fitz/stm_read.c
+++ b/fitz/stm_read.c
@@ -274,9 +274,3 @@ fz_peekbytex(fz_stream *stm)
return buf->rp < buf->wp ? *buf->rp : EOF ;
}
-
-void fz_unreadbytex(fz_stream *stm)
-{
- fz_buffer *buf = stm->buffer;
- buf->rp--;
-}