fixed compile errorsx

This commit is contained in:
Amy G. Bowersox 2019-12-07 19:48:44 -07:00
parent 3cbcda0886
commit 05bdcdaa4b
3 changed files with 5 additions and 5 deletions

View File

@ -6,8 +6,8 @@
#include "ep_init.h" #include "ep_init.h"
#include "ep_util.h" #include "ep_util.h"
PCSTR Mod_UPIWIN = "upiwin"; /* name of the primary UPIWIN module */ const PCSTR Mod_UPIWIN = "upiwin"; /* name of the primary UPIWIN module */
PCSTR Mod_UPIWIN_tmp = "upiwin_tmp"; /* name of the temporary UPIWIN module */ const PCSTR Mod_UPIWIN_tmp = "upiwin_tmp"; /* name of the temporary UPIWIN module */
static wchar_t *python_name = NULL; /* location of the Python executable */ static wchar_t *python_name = NULL; /* location of the Python executable */

View File

@ -3,8 +3,8 @@
#include "wintype.h" #include "wintype.h"
extern PCSTR Mod_UPIWIN; extern const PCSTR Mod_UPIWIN;
extern PCSTR Mod_UPIWIN_tmp; extern const PCSTR Mod_UPIWIN_tmp;
extern HRESULT Epython_setup(void); extern HRESULT Epython_setup(void);

View File

@ -24,7 +24,7 @@ void Log(int level, const char *format, ...)
gettimeofday(&tv, NULL); gettimeofday(&tv, NULL);
localtime_r(&(tv.tv_sec), &tm); localtime_r(&(tv.tv_sec), &tm);
strftime(timestamp, 32, "%F %T", &tm); strftime(timestamp, 32, "%F %T", &tm);
fprintf(logfile ? logfile : stdout, "%s.%06u %s %s\n", timestamp, tv.tv_usec, severities[level], buf); fprintf(logfile ? logfile : stdout, "%s.%06ld %s %s\n", timestamp, tv.tv_usec, severities[level], buf);
} }
void Log_assert_failed(const char *test, const char *file, int line) void Log_assert_failed(const char *test, const char *file, int line)