general helpers: wrap code with extern C

This commit is contained in:
Rustam Gamidov 2020-03-24 22:00:50 +02:00
parent 4b2c8b6629
commit 760e113414
1 changed files with 9 additions and 1 deletions

View File

@ -1,9 +1,17 @@
#ifndef H_COMMON_GENERAL #ifndef H_COMMON_GENERAL
#define H_COMMON_GENERAL #define H_COMMON_GENERAL
int max(int first, int second) #ifdef __cplusplus
extern "C" {
#endif
inline int max(int first, int second)
{ {
return (first < second) ? second : first; return (first < second) ? second : first;
} }
#ifdef __cplusplus
}
#endif
#endif #endif