From: robertlipe Date: Wed, 6 Feb 2013 22:48:27 +0000 (+0000) Subject: Better handling of strptime being in C, but used by C++. X-Git-Tag: archive/raspbian/1.10.0+ds-2+rpi1~1^2~12^2~11^2~676 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=cdbeef379ba49b1f430fddac3ed12e04da7e7264;p=gpsbabel.git Better handling of strptime being in C, but used by C++. --- diff --git a/gpsbabel/strptime.h b/gpsbabel/strptime.h index 62a0c61df..3d37bfda7 100644 --- a/gpsbabel/strptime.h +++ b/gpsbabel/strptime.h @@ -27,7 +27,12 @@ /* * Version of "strptime()", for the benefit of OSes that don't have it. */ +#ifdef __cplusplus +extern "C" { +#endif extern char* strptime(const char*, const char*, struct tm*); - +#ifdef __cplusplus +} +#endif #endif