Update contrib.
1 ///////////////////////////
7 #include <stl/_stlport_version.h>
9 /* On some evc3/evc4 targets the windows.h doesn't include winver.h or doesn't
10 * define needed file version flags, so we redefine them here.
13 # define VS_FF_DEBUG 0x00000001L
16 #ifndef VOS__WINDOWS32
17 # define VOS__WINDOWS32 0x00000004L
21 # define VFT_DLL 0x00000002L
25 # define VFT2_UNKNOWN 0x00000000L
28 #define STRINGIZE(X) STRINGIZE_AUX(X)
29 #define STRINGIZE_AUX(X) #X
31 #define VERSION_ID _STLPORT_MAJOR, _STLPORT_MINOR, _STLPORT_PATCHLEVEL, 0
32 #if !defined (__BORLANDC__)
33 # define VERSION_STR STRINGIZE(_STLPORT_MAJOR._STLPORT_MINOR._STLPORT_PATCHLEVEL)
35 /* Borland precompiler happen weird character when trying to transform a
36 * macro containing 0 in a character string so we use a workaround for this
37 * value. We do not check the major version that will never be 0 again.
39 # if (_STLPORT_MINOR == 0)
40 # define _STLP_MINOR "0"
42 # define _STLP_MINOR STRINGIZE(_STLPORT_MINOR)
44 # if (_STLPORT_PATCHLEVEL == 0)
45 # define _STLP_PATCH "0"
47 # define _STLP_PATCH STRINGIZE(_STLPORT_PATCHLEVEL)
49 # define VERSION_STR STRINGIZE(_STLPORT_MAJOR) "." _STLP_MINOR "." _STLP_PATCH "\0"
52 #if defined (__GNUC__)
53 # define LIB_MOTIF "libstlport"
55 # define LIB_MOTIF "stlport"
57 #define DLLNAME LIB_MOTIF "." STRINGIZE(_STLPORT_MAJOR) "." STRINGIZE(_STLPORT_MINOR) ".dll\0"
58 #define DLLNAME2(buildstr) LIB_MOTIF "" STRINGIZE(buildstr) "." STRINGIZE(_STLPORT_MAJOR) "." STRINGIZE(_STLPORT_MINOR) ".dll\0"
60 VS_VERSION_INFO VERSIONINFO
61 FILEVERSION VERSION_ID
62 PRODUCTVERSION VERSION_ID
69 FILESUBTYPE VFT2_UNKNOWN
71 BLOCK "StringFileInfo"
75 VALUE "CompanyName", "STLport Consulting, Inc.\0"
76 VALUE "FileDescription", "STLport\0"
77 VALUE "FileVersion", VERSION_STR
78 VALUE "InternalName", "STLPORT.DLL\0"
79 VALUE "LegalCopyright", "Copyright (C) Boris Fomitchev\0"
81 VALUE "OriginalFilename", DLLNAME
83 VALUE "OriginalFilename", DLLNAME2(BUILD)
85 VALUE "ProductName", "STLport Standard ANSI C++ Library\0"
86 VALUE "ProductVersion", VERSION_STR
87 #if defined (BUILD_INFOS)
88 VALUE "SpecialBuild", STRINGIZE(COMP) " " STRINGIZE(BUILD_INFOS) "\0"
94 VALUE "Translation", 0x409, 1200