diff --git a/compiler/libpc300/sc1.c b/compiler/libpc300/sc1.c index 0427dffd..b2d53fae 100755 --- a/compiler/libpc300/sc1.c +++ b/compiler/libpc300/sc1.c @@ -531,6 +531,7 @@ int pc_compile(int argc, char *argv[]) delete_symbols(&glbtab,0,TRUE,FALSE); #if !defined NO_DEFINE delete_substtable(); + insert_subst("__DATE__", "\"" __DATE__ "\"", 8); #endif resetglobals(); sc_ctrlchar=sc_ctrlchar_org; @@ -545,7 +546,6 @@ int pc_compile(int argc, char *argv[]) fline=skipinput; /* reset line number */ sc_reparse=FALSE; /* assume no extra passes */ sc_status=statFIRST; /* resetglobals() resets it to IDLE */ - if (strlen(incfname)>0) { if (strcmp(incfname,sDEF_PREFIX)==0) { plungefile(incfname,FALSE,TRUE); /* parse "default.inc" */ @@ -595,6 +595,7 @@ int pc_compile(int argc, char *argv[]) delete_symbols(&glbtab,0,TRUE,FALSE); #if !defined NO_DEFINE delete_substtable(); + insert_subst("__DATE__", "\"" __DATE__ "\"", 8); #endif resetglobals(); sc_ctrlchar=sc_ctrlchar_org; diff --git a/plugins/amxxpc32.dll b/plugins/amxxpc32.dll index b02b49a6..55680d1d 100755 Binary files a/plugins/amxxpc32.dll and b/plugins/amxxpc32.dll differ diff --git a/plugins/amxxpc64.dll b/plugins/amxxpc64.dll index 2237601a..8599cc9b 100755 Binary files a/plugins/amxxpc64.dll and b/plugins/amxxpc64.dll differ