Skip to content

extern C inside header file #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 14, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions mapcodelib/mapcoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#ifdef __cplusplus
extern "C" {
#endif

#define mapcode_cversion "2.0.2"

#define UWORD unsigned short int // 2-byte unsigned integer.
Expand Down Expand Up @@ -314,3 +319,7 @@ const UWORD *encodeToAlphabet(const char *string, int alphabet);
#define MAPCODE_LANGUAGE_BENGALI MAPCODE_ALPHABET_BENGALI
#define MAPCODE_LANGUAGE_GURMUKHI MAPCODE_ALPHABET_GURMUKHI
#define MAPCODE_LANGUAGE_TIBETAN MAPCODE_ALPHABET_TIBETAN

#ifdef __cplusplus
}
#endif