aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2016-02-05 10:02:29 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2016-02-05 10:02:29 -0500
commitcedef41777ac60f0a3de75bc8a95f6bfbb87fbfa (patch)
treed57442d0c6d177e62861dde6b30a336ee79f89f5
parent38bd88a7fbc7ae3d54e4ff22700f39ae3f80186e (diff)
downloadtextadept-cedef41777ac60f0a3de75bc8a95f6bfbb87fbfa.tar.gz
textadept-cedef41777ac60f0a3de75bc8a95f6bfbb87fbfa.zip
Fix building CDK in debug mode.
In debug mode, inline functions are not inlined, so ensure internal linkage. Thanks to Markus F.X.J. Oberhume.
-rw-r--r--THANKS.md1
-rw-r--r--src/cdk.patch2
2 files changed, 2 insertions, 1 deletions
diff --git a/THANKS.md b/THANKS.md
index 383fdbb5..d3ee3b00 100644
--- a/THANKS.md
+++ b/THANKS.md
@@ -43,6 +43,7 @@ private contract work related to Textadept.
* Lance Larsen
* M Rawash
* Manuel Montenegro
+* Markus F.X.J. Oberhume
* Martin Morawetz
* Michael T. Richter
* Neil Hodgson
diff --git a/src/cdk.patch b/src/cdk.patch
index b3d5e55a..decbf63b 100644
--- a/src/cdk.patch
+++ b/src/cdk.patch
@@ -432,7 +432,7 @@ diff -r c40f79827990 entry.c
}
}
-+inline int isUtf8CharPart(unsigned int ch) { return (ch >= 0x80) && (ch < 0xc0); }
++static inline int isUtf8CharPart(unsigned int ch) { return (ch >= 0x80) && (ch < 0xc0); }
+
/*
* This injects a single character into the widget.