00001 /* 00002 # This file is Copyright 2010 Dean Hall. 00003 # 00004 # This file is part of the Python-on-a-Chip program. 00005 # Python-on-a-Chip is free software: you can redistribute it and/or modify 00006 # it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1. 00007 # 00008 # Python-on-a-Chip is distributed in the hope that it will be useful, 00009 # but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00011 # A copy of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1 00012 # is seen in the file COPYING up one directory from this. 00013 */ 00014 00015 #ifndef _PLAT_H_ 00016 #define _PLAT_H_ 00017 00018 #include <stdio.h> 00019 00020 // MSVC does not define a stock snprintf, so we define one here 00021 #if defined(_MSC_VER) 00022 //#define snprintf _snprintf 00023 #define snprintf(buf, count, format, ...) _snprintf_s(buf, count, _TRUNCATE, format, __VA_ARGS__) 00024 #endif 00025 00026 #define PM_HEAP_SIZE 0x2000 00027 #define PM_FLOAT_LITTLE_ENDIAN 00028 00029 #endif /* _PLAT_H_ */