Merge pull request #420 from AdamMajer/compat_headers
Add compatibility headers
This commit is contained in:
commit
517a2ea72d
|
@ -140,6 +140,12 @@ set ( CFILES
|
||||||
set ( HFILES
|
set ( HFILES
|
||||||
${INCDIR}/tidyplatform.h ${INCDIR}/tidy.h ${INCDIR}/tidyenum.h
|
${INCDIR}/tidyplatform.h ${INCDIR}/tidy.h ${INCDIR}/tidyenum.h
|
||||||
${INCDIR}/tidybuffio.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
|
set ( LIBHFILES
|
||||||
${SRCDIR}/access.h ${SRCDIR}/attrs.h ${SRCDIR}/attrdict.h ${SRCDIR}/charsets.h
|
${SRCDIR}/access.h ${SRCDIR}/attrs.h ${SRCDIR}/attrdict.h ${SRCDIR}/charsets.h
|
||||||
${SRCDIR}/clean.h ${SRCDIR}/config.h ${SRCDIR}/entities.h
|
${SRCDIR}/clean.h ${SRCDIR}/config.h ${SRCDIR}/entities.h
|
||||||
|
|
6
include/buffio.h
Normal file
6
include/buffio.h
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
#ifdef __GNUC__
|
||||||
|
#warning "FIXME: Using compatibility tidy header (buffio.h) that will go away!"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "tidybuffio.h"
|
||||||
|
|
6
include/platform.h
Normal file
6
include/platform.h
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
#ifdef __GNUC__
|
||||||
|
#warning "FIXME: Using compatibility tidy header (platform.h) that will go away!"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "tidyplatform.h"
|
||||||
|
|
Loading…
Reference in a new issue