提交 2549ffcd 编写于 作者: S Sean Barrett

Merge branch 'working'

此差异已折叠。
...@@ -70,9 +70,11 @@ void stbir_progress(float p) ...@@ -70,9 +70,11 @@ void stbir_progress(float p)
#ifdef _WIN32 #ifdef _WIN32
#include <sys/timeb.h> #include <sys/timeb.h>
#endif
#include <direct.h> #include <direct.h>
#define mkdir(a, b) _mkdir(a)
#else
#include <sys/stat.h>
#endif
#define MT_SIZE 624 #define MT_SIZE 624
static size_t g_aiMT[MT_SIZE]; static size_t g_aiMT[MT_SIZE];
...@@ -833,7 +835,7 @@ void test_filters(void) ...@@ -833,7 +835,7 @@ void test_filters(void)
#define UMAX32 4294967295U #define UMAX32 4294967295U
static void write32(char *filename, stbir_uint32 *output, int w, int h) static void write32(const char *filename, stbir_uint32 *output, int w, int h)
{ {
stbir_uint8 *data = (stbir_uint8*) malloc(w*h*3); stbir_uint8 *data = (stbir_uint8*) malloc(w*h*3);
for (int i=0; i < w*h*3; ++i) for (int i=0; i < w*h*3; ++i)
...@@ -869,9 +871,9 @@ static void test_32(void) ...@@ -869,9 +871,9 @@ static void test_32(void)
void test_suite(int argc, char **argv) void test_suite(int argc, char **argv)
{ {
int i; int i;
char *barbara; const char *barbara;
_mkdir("test-output"); mkdir("test-output", 777);
if (argc > 1) if (argc > 1)
barbara = argv[1]; barbara = argv[1];
......
...@@ -3,3 +3,6 @@ ...@@ -3,3 +3,6 @@
#include "stb_image_resize.h" #include "stb_image_resize.h"
// Just to make sure it will build properly with a c compiler // Just to make sure it will build properly with a c compiler
int main() {
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册