r18755 - gnucash/trunk/src/engine - MSVC compatibility: Microsoft doesn't have C99 "designated initializers".

Christian Stimming cstim at code.gnucash.org
Sat Feb 27 13:41:50 EST 2010


Author: cstim
Date: 2010-02-27 13:41:49 -0500 (Sat, 27 Feb 2010)
New Revision: 18755
Trac: http://svn.gnucash.org/trac/changeset/18755

Modified:
   gnucash/trunk/src/engine/Account.c
   gnucash/trunk/src/engine/SX-book.c
   gnucash/trunk/src/engine/SchedXaction.c
   gnucash/trunk/src/engine/Split.c
   gnucash/trunk/src/engine/Transaction.c
   gnucash/trunk/src/engine/gnc-budget.c
   gnucash/trunk/src/engine/gnc-commodity.c
   gnucash/trunk/src/engine/gnc-lot.c
   gnucash/trunk/src/engine/gnc-pricedb.c
Log:
MSVC compatibility: Microsoft doesn't have C99 "designated initializers".

Those were introduced in r17724, bug#539957, but apparently this
C99 is not supported by MSVC and won't be for some time to come.
Hence, for MSVC we need the workaround to define a macro that will
shadow the member names. However, the initialization itself works
fine and non-MSVC code is unchanged, so I think we can live with that.



More information about the gnucash-patches mailing list