diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2015-06-22 18:32:27 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2015-06-22 18:32:27 +0200 |
commit | e2515f6e1a7b17addda4c558a0a6ca05b4ec6e55 (patch) | |
tree | ea63b9499de4abbf7e09c3b6a6952786740be577 /pcilib/tools.h | |
parent | 87583e6ec5c1961ef975b873041eeada3e1e6c6d (diff) | |
download | pcitool-e2515f6e1a7b17addda4c558a0a6ca05b4ec6e55.tar.gz pcitool-e2515f6e1a7b17addda4c558a0a6ca05b4ec6e55.tar.bz2 pcitool-e2515f6e1a7b17addda4c558a0a6ca05b4ec6e55.tar.xz pcitool-e2515f6e1a7b17addda4c558a0a6ca05b4ec6e55.zip |
Keep C++ compilers happy
Diffstat (limited to 'pcilib/tools.h')
-rw-r--r-- | pcilib/tools.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pcilib/tools.h b/pcilib/tools.h index 41dc071..8e91b17 100644 --- a/pcilib/tools.h +++ b/pcilib/tools.h @@ -14,6 +14,10 @@ #define min2(a, b) (((a)<(b))?(a):(b)) +#ifdef __cplusplus +extern "C" { +#endif + int pcilib_isnumber(const char *str); int pcilib_isxnumber(const char *str); int pcilib_isnumber_n(const char *str, size_t len); @@ -41,4 +45,8 @@ int pcilib_sleep_until_deadline(struct timeval *tv); int pcilib_timecmp(struct timeval *tv1, struct timeval *tv2); pcilib_timeout_t pcilib_timediff(struct timeval *tve, struct timeval *tvs); +#ifdef __cplusplus +} +#endif + #endif /* _PCITOOL_TOOS_H */ |