fix compilation on Windows

This commit is contained in:
Vincent Torri 2020-11-05 11:36:43 +01:00 committed by Hermet Park
parent 006e6e0920
commit 8243b3a1f5
3 changed files with 9 additions and 3 deletions

View file

@ -20,6 +20,7 @@
* SOFTWARE.
*/
#include <string>
#include <thorvg.h>
#include "thorvg_capi.h"

View file

@ -22,7 +22,8 @@
#ifndef _TVG_FILL_H_
#define _TVG_FILL_H_
#include <string.h>
#include <cstdlib>
#include <cstring>
#include "tvgCommon.h"
template<typename T>
@ -75,7 +76,7 @@ struct Fill::Impl
memcpy(ret->pImpl->colorStops, colorStops, sizeof(ColorStop) * cnt);
return ret;
}
}
};
#endif //_TVG_FILL_H_

View file

@ -22,7 +22,11 @@
#include <ctype.h>
#include <cstring>
#include <alloca.h>
#ifdef _WIN32
# include <malloc.h>
#else
# include <alloca.h>
#endif
#include "tvgXmlParser.h"