We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In commit 7e1b94b a macro using stderr was added in util.cpp however stdio.h was not included. As a result the file won't compile on Windows.
Broken code:
#include<stdint.h> #include "ast.hpp" #include "util.hpp" #include "prelexer.hpp" #include "utf8/checked.h" namespace Sass { #define out_of_memory() do { \ fprintf(stderr, "Out of memory.\n"); \ exit(EXIT_FAILURE); \ } while (0) /* Sadly, sass_strdup is not portable. */ char *sass_strdup(const char *str) { char *ret = (char*) malloc(strlen(str) + 1); if (ret == NULL) out_of_memory(); strcpy(ret, str); return ret; } ... }
Code that compiles:
#include<stdint.h> #include<stdio.h> #include "ast.hpp" #include "util.hpp" #include "prelexer.hpp" #include "utf8/checked.h" namespace Sass { #define out_of_memory() do { \ fprintf(stderr, "Out of memory.\n"); \ exit(EXIT_FAILURE); \ } while (0) /* Sadly, sass_strdup is not portable. */ char *sass_strdup(const char *str) { char *ret = (char*) malloc(strlen(str) + 1); if (ret == NULL) out_of_memory(); strcpy(ret, str); return ret; } ... }
The text was updated successfully, but these errors were encountered:
This was also reported in sass/node-sass#892 prevent compilations on FreeBSD
Sorry, something went wrong.
Fixed in 3.2.1
xzyfer
Successfully merging a pull request may close this issue.
In commit 7e1b94b a macro using stderr was added in util.cpp however stdio.h was not included. As a result the file won't compile on Windows.
Broken code:
Code that compiles:
The text was updated successfully, but these errors were encountered: