okular/core/synctex/patches/00-disable-SYNCTEX_INLINE.diff
Albert Astals Cid d95efa7698 Move synctex up to the core from poppler generator
This way dvi and any other potential user gets it for free

The diff is huge, but the synctex files are just moves.

And the code in core/ is also mostly just a move from the generator_pdf.cpp code

Acked by Luigi

REVIEW: 120311
2014-10-09 00:17:53 +02:00

17 lines
645 B
Diff

Description: Disable SYNCTEX_INLINE on non-MSVC compilers.
It is misplaced in the code (before "static"), so it causes compiling errors.
Author: Pino Toscano <pino@kde.org>
diff --git a/generators/poppler/synctex/synctex_parser.c b/generators/poppler/synctex/synctex_parser.c
index 0d3de08..53f462d 100644
--- a/generators/poppler/synctex/synctex_parser.c
+++ b/generators/poppler/synctex/synctex_parser.c
@@ -67,7 +67,7 @@ Thu Jun 19 09:39:21 UTC 2008
# if defined(_MSC_VER)
# define SYNCTEX_INLINE __inline
# else
-# define SYNCTEX_INLINE inline
+# define SYNCTEX_INLINE
# endif
# endif