getting rid of strerror problem

This commit is contained in:
tamasmeszaros 2018-05-22 16:39:47 +02:00
parent 9c2d9b2ba3
commit 2eddacfb7e
3 changed files with 19 additions and 18 deletions

View file

@ -1342,7 +1342,7 @@ public:
inline unsigned layers() const { return layers_rst_.size(); }
inline void drawPolygon(const ExPolygon& p, unsigned lyr) {
assert(lyr_id < layers_rst_.size());
assert(lyr < layers_rst_.size());
layers_rst_[lyr].first.draw(p);
}

View file

@ -16,12 +16,6 @@
#include <agg/agg_path_storage.h>
// For png compression
//#if !((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && ! _GNU_SOURCE)
//inline char *strerror_r(int errnum, char *buf, size_t buflen) {
// strerror_s(buf, buflen, errnum);
// return buf;
//}
//#endif
#include <png/writer.hpp>
namespace Slic3r {