Get Visual Studio 12 working.

This commit is contained in:
Joergen Ibsen 2016-08-12 09:36:04 -07:00 committed by Evan Nemerson
parent 81699de01a
commit 2104151182
4 changed files with 10 additions and 2 deletions

View File

@ -2,8 +2,8 @@ environment:
matrix:
- GENERATOR: Visual Studio 14 2015 Win64
- GENERATOR: Visual Studio 14 2015
# - GENERATOR: Visual Studio 12 2013 Win64
# - GENERATOR: Visual Studio 12 2013
- GENERATOR: Visual Studio 12 2013 Win64
- GENERATOR: Visual Studio 12 2013
before_build:
- ps: |

View File

@ -22,6 +22,10 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSI
#ifndef LZFSE_ENCODE_TABLES_H
#define LZFSE_ENCODE_TABLES_H
#if defined(_MSC_VER) && !defined(__clang__)
# define inline __inline
#endif
static inline uint8_t l_base_from_value(int32_t value) {
static const uint8_t sym[LZFSE_ENCODE_MAX_L_VALUE + 1] = {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16,

View File

@ -42,6 +42,7 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSI
#if defined(_MSC_VER) && !defined(__clang__)
# define FSE_INLINE __forceinline
# define inline __inline
# pragma warning(disable : 4068) // warning C4068: unknown pragma
#else
# define FSE_INLINE static inline __attribute__((__always_inline__))

View File

@ -33,6 +33,9 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSI
# if !defined(_CRT_SECURE_NO_WARNINGS)
# define _CRT_SECURE_NO_WARNINGS
# endif
# if !defined(__clang__)
# define inline __inline
# endif
#endif
#include "lzfse.h"