VirtualBox

Changeset 55773 in vbox for trunk/include/VBox


Ignore:
Timestamp:
May 8, 2015 8:24:19 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
100199
Message:

Use defines in the RC files and make those defines compatible with what we use in C/C++ code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/version.h

    r44528 r55773  
    2727#define ___VBox_version_h
    2828
     29#include <iprt/cdefs.h> /* For RT_XSTR. */
     30
    2931/* Product info. */
    3032#include <product-generated.h>
     33#include <version-generated.h>
    3134
    3235#ifndef RC_INVOKED
    33 # include <version-generated.h>
    3436
    3537/** Combined version number. */
     
    9395
    9496/** @name Prefined strings for Windows resource files
    95  *
    96  * @remarks The VBOX_VERSION_*_NR define are integer numbers while
    97  *          VBOX_VERSION_* are strings when using the resource compile.
    98  *          Kind of confusing...
    99  *
    10097 * @{ */
    10198#define VBOX_RC_COMPANY_NAME            VBOX_VENDOR
    10299#define VBOX_RC_LEGAL_COPYRIGHT         "Copyright (C) 2009-" VBOX_C_YEAR " Oracle Corporation\0"
    103 #define VBOX_RC_PRODUCT_VERSION         VBOX_VERSION_MAJOR_NR , VBOX_VERSION_MINOR_NR , 0 , 0
    104 #define VBOX_RC_FILE_VERSION            VBOX_VERSION_MAJOR_NR , VBOX_VERSION_MINOR_NR , 0 , 0
     100#define VBOX_RC_PRODUCT_VERSION         VBOX_VERSION_MAJOR , VBOX_VERSION_MINOR , VBOX_VERSION_BUILD , 0
     101#define VBOX_RC_PRODUCT_VERSION_STR     RT_XSTR(VBOX_VERSION_MAJOR) "." RT_XSTR(VBOX_VERSION_MINOR) "." RT_XSTR(VBOX_VERSION_BUILD) ".r" RT_XSTR(VBOX_SVN_REV) "\0"
     102#define VBOX_RC_FILE_VERSION            VBOX_VERSION_MAJOR , VBOX_VERSION_MINOR , VBOX_VERSION_BUILD , 0
     103#define VBOX_RC_FILE_VERSION_STR        RT_XSTR(VBOX_VERSION_MAJOR) "." RT_XSTR(VBOX_VERSION_MINOR) "." RT_XSTR(VBOX_VERSION_BUILD) "." RT_XSTR(VBOX_SVN_REV) "\0"
     104#define VBOX_RC_PRODUCT_NAME_STR        VBOX_PRODUCT_NAME "\0"
     105#define VBOX_RC_PRODUCT_NAME_GA_STR     VBOX_PRODUCT_NAME " Guest Additions\0"
    105106/** @} */
    106 
    107 /** @todo Clean up the resource compiler mess where we cannot include
    108  *        version-generated.h and requires two files. */
    109107
    110108#endif
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette