prepare for c++17

This commit is contained in:
Changkun Ou
2018-03-26 09:08:36 +02:00
parent 8a3eb8f271
commit 71025d8bc6
39 changed files with 28 additions and 11 deletions

17
code/1/foo.h Normal file
View File

@@ -0,0 +1,17 @@
//
// foo.h
// c++1x tutorial
//
// created by changkun at shiyanlou.com
//
#ifdef __cplusplus
extern "C" {
#endif
int add(int x, int y);
#ifdef __cplusplus
}
#endif