Skip to content

Commit d6a7825

Browse files
committed
Merge pull request #1 from joycepg/extern-C
wrap header file in extern C scope
2 parents ae58bc2 + 29396f0 commit d6a7825

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

mapcodelib/mapcoder.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16+
17+
#ifdef __cplusplus
18+
extern "C" {
19+
#endif
20+
1621
#define mapcode_cversion "2.0.2"
1722

1823
#define UWORD unsigned short int // 2-byte unsigned integer.
@@ -314,3 +319,7 @@ const UWORD *encodeToAlphabet(const char *string, int alphabet);
314319
#define MAPCODE_LANGUAGE_BENGALI MAPCODE_ALPHABET_BENGALI
315320
#define MAPCODE_LANGUAGE_GURMUKHI MAPCODE_ALPHABET_GURMUKHI
316321
#define MAPCODE_LANGUAGE_TIBETAN MAPCODE_ALPHABET_TIBETAN
322+
323+
#ifdef __cplusplus
324+
}
325+
#endif

0 commit comments

Comments
 (0)