* generic/random.h: for building under VC++ in debug mode.
2004-02-23 Pat Thoyts <patthoyts@users.sourceforge.net>
+ * win/makefile.vc: Added a version resource and a few more fixes
+ * generic/random.h: for building under VC++ in debug mode.
+
* win/makefile.vc: Added VC++ build files.
* win/rules.vc:
* win/nmakehlp.c:
#define _random_h_INCLUDE
#include <tcl.h>
+#include <stdlib.h>
+#include <time.h>
#ifdef BUILD_Random
#undef TCL_STORAGE_CLASS
--- /dev/null
+// SCCS: @(#) memchan.rc 1.0 96/04/12 18:08:09
+//
+// Version
+//
+
+#include <winver.h>
+
+VS_VERSION_INFO VERSIONINFO
+ FILEVERSION COMMAVERSION
+ PRODUCTVERSION COMMAVERSION
+ FILEFLAGSMASK 0x3fL
+ FILEFLAGS 0x0L
+ FILEOS 0x4L
+ FILETYPE 0x1L
+ FILESUBTYPE 0x0L
+BEGIN
+ BLOCK "StringFileInfo"
+ BEGIN
+ BLOCK "040904b0"
+ BEGIN
+ VALUE "FileDescription", "Random Tcl extension\0"
+ VALUE "OriginalFilename", "Random" VERSION ".dll\0"
+ VALUE "CompanyName", "Pat Thoyts\0"
+ VALUE "FileVersion", DOTVERSION "\0"
+ VALUE "LegalCopyright", "Copyright \251 2003 Pat Thoyts\0"
+ VALUE "ProductName", "Tcl Random extension\0"
+ VALUE "ProductVersion", DOTVERSION "\0"
+ END
+ END
+ BLOCK "VarFileInfo"
+ BEGIN
+ VALUE "Translation", 0x409, 1200
+ END
+END
DOTVERSION = 1.2.0
VERSION = $(DOTVERSION:.=)
+COMMAVERSION = $(DOTVERSION:.=,),0
STUBPREFIX = $(PROJECT)stub
DLLOBJS = \
$(TMP_DIR)\rand_isaac.obj \
$(TMP_DIR)\randport.obj
+RCRES = $(TMP_DIR)\Random.res
+
#-------------------------------------------------------------------------
# Target names and paths ( shouldn't need changing )
#-------------------------------------------------------------------------
@if not exist $(OUT_DIR)\nul mkdir $(OUT_DIR)
@if not exist $(TMP_DIR)\nul mkdir $(TMP_DIR)
-$(PRJLIB): $(DLLOBJS)
+$(PRJLIB): $(DLLOBJS) $(RCRES)
$(link32) $(dlllflags) -out:$@ $(baselibs) @<<
$**
<<
{$(WINDIR)}.rc{$(TMP_DIR)}.res:
$(rc32) -fo $@ -r -i "$(GENERICDIR)" -D__WIN32__ \
+ -DCOMMAVERSION=$(COMMAVERSION) \
+ -DDOTVERSION=\"$(DOTVERSION)\" \
+ -DVERSION=\"$(VERSION)$(SUFX)\" \
!if $(DEBUG)
-d DEBUG \
!endif