[OPENSM] set opensm cache & config folder as %ProgramFiles%\WinOF\OpenSM; integrated...
[mirror/winof/.git] / inc / oib_ver.h
1 /*\r
2  * Copyright (c) 2005 SilverStorm Technologies.  All rights reserved.\r
3  *\r
4  * This software is available to you under the OpenIB.org BSD license\r
5  * below:\r
6  *\r
7  *     Redistribution and use in source and binary forms, with or\r
8  *     without modification, are permitted provided that the following\r
9  *     conditions are met:\r
10  *\r
11  *      - Redistributions of source code must retain the above\r
12  *        copyright notice, this list of conditions and the following\r
13  *        disclaimer.\r
14  *\r
15  *      - Redistributions in binary form must reproduce the above\r
16  *        copyright notice, this list of conditions and the following\r
17  *        disclaimer in the documentation and/or other materials\r
18  *        provided with the distribution.\r
19  *\r
20  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
21  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
22  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
23  * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS\r
24  * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\r
25  * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\r
26  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r
27  * SOFTWARE.\r
28  *\r
29  * $Id$\r
30  */\r
31 \r
32 \r
33 #include <windows.h>\r
34 #include <ntverp.h>\r
35 \r
36 #if             (VER_FILEBUILD < 10)\r
37 #define VER_FILEBPAD "000"\r
38 #elif   (VER_FILEBUILD < 100)\r
39 #define VER_FILEBPAD "00"\r
40 #elif   (VER_FILEBUILD < 1000)\r
41 #define VER_FILEBPAD "0"\r
42 #else\r
43 #define VER_FILEBPAD\r
44 #endif\r
45 \r
46 #define VER_FILEVERSION                 VER_FILEMAJORVERSION,\\r
47                                                                 VER_FILEMINORVERSION,\\r
48                                                                 VER_FILEBUILD,\\r
49                                                                 VER_FILEREV\r
50 \r
51 #define VER_FILEVERSION_STR2(M,m,b,r)   #M "." #m "." VER_FILEBPAD #b "." #r\r
52 #define VER_FILEVERSION_STR1(M,m,b,r)   VER_FILEVERSION_STR2(M,m,b,r)\r
53 #define VER_FILEVERSION_STR             VER_FILEVERSION_STR1( VER_FILEMAJORVERSION, \\r
54                                                                                                         VER_FILEMINORVERSION, \\r
55                                                                                                         VER_FILEBUILD, \\r
56                                                                                                         VER_FILEREV )\r
57 \r
58 #undef __BUILDMACHINE__\r
59 \r
60 #ifdef VER_COMPANYNAME_STR\r
61 #undef VER_COMPANYNAME_STR\r
62 #endif\r
63 #define VER_COMPANYNAME_STR             IB_COMPANYNAME\r
64 \r
65 #ifdef VER_PRODUCTNAME_STR\r
66 #undef VER_PRODUCTNAME_STR\r
67 #endif\r
68 #define VER_PRODUCTNAME_STR             IB_PRODUCTNAME\r
69 \r
70 #define VER_LEGALCOPYRIGHT_STR  "Copyright\xa9 2008 OpenFabrics Alliance"\r