diff options
author | David Robillard <d@drobilla.net> | 2012-08-03 18:21:51 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-08-03 18:21:51 +0000 |
commit | f17015940a7a01c94ce93a7dd437d0fcff0261bd (patch) | |
tree | 8d417a37438ae46750fb9aeb4e673eb9ce692365 /src | |
parent | 551ba602e3123a4efdf2fb32d0e32a0c5506503a (diff) | |
download | jalv-f17015940a7a01c94ce93a7dd437d0fcff0261bd.tar.gz jalv-f17015940a7a01c94ce93a7dd437d0fcff0261bd.tar.bz2 jalv-f17015940a7a01c94ce93a7dd437d0fcff0261bd.zip |
MSVC portability work.
git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@4611 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r-- | src/jalv.c | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -19,16 +19,21 @@ #include <assert.h> #include <math.h> #include <signal.h> -#include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <sys/stat.h> -#include <sys/types.h> -#include <unistd.h> + +#ifndef __cplusplus +# include <stdbool.h> +#endif #ifdef _WIN32 # include <io.h> /* for _mktemp */ +# define snprintf _snprintf +#else +# include <sys/stat.h> +# include <sys/types.h> +# include <unistd.h> #endif #include "jalv_config.h" |