Skip to content

Commit 517a2ea

Browse files
authored
Merge pull request #420 from AdamMajer/compat_headers
Add compatibility headers
2 parents d332908 + 30cc376 commit 517a2ea

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,12 @@ set ( CFILES
140140
set ( HFILES
141141
${INCDIR}/tidyplatform.h ${INCDIR}/tidy.h ${INCDIR}/tidyenum.h
142142
${INCDIR}/tidybuffio.h )
143+
144+
option (TIDY_COMPAT_HEADERS "If set to ON, compatability headers are included" OFF)
145+
if (TIDY_COMPAT_HEADERS)
146+
set ( HFILES ${HFILES} ${INCDIR}/buffio.h ${INCDIR}/platform.h )
147+
endif ()
148+
143149
set ( LIBHFILES
144150
${SRCDIR}/access.h ${SRCDIR}/attrs.h ${SRCDIR}/attrdict.h ${SRCDIR}/charsets.h
145151
${SRCDIR}/clean.h ${SRCDIR}/config.h ${SRCDIR}/entities.h

include/buffio.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#ifdef __GNUC__
2+
#warning "FIXME: Using compatibility tidy header (buffio.h) that will go away!"
3+
#endif
4+
5+
#include "tidybuffio.h"
6+

include/platform.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#ifdef __GNUC__
2+
#warning "FIXME: Using compatibility tidy header (platform.h) that will go away!"
3+
#endif
4+
5+
#include "tidyplatform.h"
6+

0 commit comments

Comments
 (0)