mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 12:04:29 +00:00
fix compilation on Windows
This commit is contained in:
parent
006e6e0920
commit
8243b3a1f5
3 changed files with 9 additions and 3 deletions
|
@ -20,6 +20,7 @@
|
||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <string>
|
||||||
#include <thorvg.h>
|
#include <thorvg.h>
|
||||||
#include "thorvg_capi.h"
|
#include "thorvg_capi.h"
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,8 @@
|
||||||
#ifndef _TVG_FILL_H_
|
#ifndef _TVG_FILL_H_
|
||||||
#define _TVG_FILL_H_
|
#define _TVG_FILL_H_
|
||||||
|
|
||||||
#include <string.h>
|
#include <cstdlib>
|
||||||
|
#include <cstring>
|
||||||
#include "tvgCommon.h"
|
#include "tvgCommon.h"
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
|
@ -75,7 +76,7 @@ struct Fill::Impl
|
||||||
memcpy(ret->pImpl->colorStops, colorStops, sizeof(ColorStop) * cnt);
|
memcpy(ret->pImpl->colorStops, colorStops, sizeof(ColorStop) * cnt);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif //_TVG_FILL_H_
|
#endif //_TVG_FILL_H_
|
||||||
|
|
|
@ -22,7 +22,11 @@
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <alloca.h>
|
#ifdef _WIN32
|
||||||
|
# include <malloc.h>
|
||||||
|
#else
|
||||||
|
# include <alloca.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "tvgXmlParser.h"
|
#include "tvgXmlParser.h"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue