mirror of
https://github.com/darlinghq/lzfse.git
synced 2024-11-23 04:09:47 +00:00
Get Visual Studio 12 working.
This commit is contained in:
parent
81699de01a
commit
2104151182
@ -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: |
|
||||
|
@ -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,
|
||||
|
@ -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__))
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user