1 /* 2 * 3 * Copyright (c) 2016, 2017 Matthew Brush 4 * 5 * 6 * This source code is released for free distribution under the terms of the 7 * GNU General Public License version 2 or (at your option) any later version. 8 * 9 */ 10 11 #ifndef CTAGS_MAIN_INLINE_H 12 #define CTAGS_MAIN_INLINE_H 13 14 #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L 15 # define CTAGS_INLINE static inline 16 #elif defined(_MSC_VER) 17 # define CTAGS_INLINE static __inline 18 #elif defined(__GNUC__) || defined(__clang__) 19 # define CTAGS_INLINE static __inline__ 20 // #elif ... other compilers/tests here ... 21 // # define CTAGS_INLINE ... 22 #else 23 # define CTAGS_INLINE static 24 #endif 25 26 #endif /* CTAGS_MAIN_INLINE_H */ 27