Merge pull request #2 from tazza-d/master

Small changes to make compilable on non-Windows OS
This commit is contained in:
John Wilbert Villamor 2020-04-24 19:34:27 +08:00 committed by GitHub
commit ca244c3de1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -3,8 +3,13 @@
#include <ctype.h>
#include <math.h>
#include <unistd.h>
#ifdef _WIN32
#include <windows.h>
#include <freeimage.h>
#else
#include <limits.h>
#define MAX_PATH PATH_MAX
#endif
#include <FreeImage.h>
#include "tim.h"

2
tim.h
View File

@ -2,7 +2,9 @@
#define _TIM_H
#include <stdio.h>
#ifdef _WIN32
#include <windows.h>
#endif
#include <math.h>
#define TIM_OUTPUT_CLUT4 0