diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..e287079 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Unifying line endings so tests can pass on Windows +*.json text eol=lf \ No newline at end of file diff --git a/.gitignore b/.gitignore index bd33acc..4c8f152 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,10 @@ *.d *.o *.so +*.pdb +*.dll +*.exp +*.lib _build compile_commands.json deps diff --git a/c_src/termstack.c b/c_src/termstack.c index a558b0a..a5d6425 100644 --- a/c_src/termstack.c +++ b/c_src/termstack.c @@ -8,6 +8,10 @@ #include "jiffy.h" #include "termstack.h" +#if WINDOWS || WIN32 +#define inline +#endif + ERL_NIF_TERM termstack_save(ErlNifEnv* env, TermStack* stack) {