general helpers: wrap code with extern C
This commit is contained in:
parent
4b2c8b6629
commit
760e113414
|
@ -1,9 +1,17 @@
|
|||
#ifndef 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;
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue