Skip to content

Commit

Permalink
Merge pull request #629 from chewing/compat-header
Browse files Browse the repository at this point in the history
fix(capi): Ship 0.5.x compat headers
  • Loading branch information
kanru authored Jul 22, 2024
2 parents fabe755 + 3db2fc7 commit 243cd5b
Show file tree
Hide file tree
Showing 5 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 @@ -177,6 +177,12 @@ include_directories(

set(ALL_INC
${INC_DIR}/chewing.h

# 0.5.x compatibility headers
${INC_DIR}/chewing-compat.h
${INC_DIR}/chewingio.h
${INC_DIR}/global.h
${INC_DIR}/mod_aux.h
)

add_subdirectory(doc)
Expand Down
3 changes: 3 additions & 0 deletions include/chewing-compat.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#warning "This header is deprecated. Include <chewing.h> directly."

#include "chewing.h"
3 changes: 3 additions & 0 deletions include/chewingio.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#warning "This header is deprecated. Include <chewing.h> directly."

#include "chewing.h"
3 changes: 3 additions & 0 deletions include/global.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#warning "This header is deprecated. Include <chewing.h> directly."

#include "chewing.h"
3 changes: 3 additions & 0 deletions include/mod_aux.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#warning "This header is deprecated. Include <chewing.h> directly."

#include "chewing.h"

0 comments on commit 243cd5b

Please sign in to comment.