Skip to content

Commit

Permalink
Got schoco compiling under MSVC2013 in C++ project
Browse files Browse the repository at this point in the history
  • Loading branch information
cameron314 committed Oct 6, 2014
1 parent 96589ef commit 352efbc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 2 additions & 0 deletions shoco.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

#if defined(_MSC_VER)
#define _ALIGNED __declspec(align(16))
#define inline __inline
#define restrict __restrict
#elif defined(__GNUC__)
#define _ALIGNED __attribute__ ((aligned(16)))
#else
Expand Down
12 changes: 10 additions & 2 deletions shoco.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,13 @@

#include <stddef.h>

size_t shoco_compress(const char * in, size_t len, char * out, size_t bufsize);
size_t shoco_decompress(const char * in, size_t len, char * out, size_t bufsize);
#ifdef __cplusplus
extern "C" {
#endif

size_t shoco_compress(const char * const in, size_t len, char * const out, size_t bufsize);
size_t shoco_decompress(const char * const in, size_t len, char * const out, size_t bufsize);

#ifdef __cplusplus
}
#endif

0 comments on commit 352efbc

Please sign in to comment.