1 /* 2 * Copyright (c) 2014 Dmitry Kazakov <dimula73@gmail.com> 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation; either version 2 of the License, or 7 * (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 */ 18 19 #ifndef __KO_ALWAYS_INLINE_H 20 #define __KO_ALWAYS_INLINE_H 21 22 #ifndef ALWAYS_INLINE 23 #if defined __GNUC__ 24 #define ALWAYS_INLINE inline __attribute__((__always_inline__)) 25 #elif defined _MSC_VER 26 #define ALWAYS_INLINE __forceinline 27 #else 28 #define ALWAYS_INLINE inline 29 #endif 30 #endif 31 32 #endif /* __KO_ALWAYS_INLINE_H */ 33