Skip to content

Commit

Permalink
Merge pull request #420 from AdamMajer/compat_headers
Browse files Browse the repository at this point in the history
Add compatibility headers
  • Loading branch information
geoffmcl committed Jul 10, 2016
2 parents d332908 + 30cc376 commit 517a2ea
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,12 @@ set ( CFILES
set ( HFILES
${INCDIR}/tidyplatform.h ${INCDIR}/tidy.h ${INCDIR}/tidyenum.h
${INCDIR}/tidybuffio.h )

option (TIDY_COMPAT_HEADERS "If set to ON, compatability headers are included" OFF)
if (TIDY_COMPAT_HEADERS)
set ( HFILES ${HFILES} ${INCDIR}/buffio.h ${INCDIR}/platform.h )
endif ()

set ( LIBHFILES
${SRCDIR}/access.h ${SRCDIR}/attrs.h ${SRCDIR}/attrdict.h ${SRCDIR}/charsets.h
${SRCDIR}/clean.h ${SRCDIR}/config.h ${SRCDIR}/entities.h
Expand Down
6 changes: 6 additions & 0 deletions include/buffio.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#ifdef __GNUC__
#warning "FIXME: Using compatibility tidy header (buffio.h) that will go away!"
#endif

#include "tidybuffio.h"

6 changes: 6 additions & 0 deletions include/platform.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#ifdef __GNUC__
#warning "FIXME: Using compatibility tidy header (platform.h) that will go away!"
#endif

#include "tidyplatform.h"

0 comments on commit 517a2ea

Please sign in to comment.