Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[Windows] Fix access to root log categories from other libs
authorGabriel Corona <gabriel.corona@loria.fr>
Wed, 10 Jun 2015 13:01:07 +0000 (15:01 +0200)
committerGabriel Corona <gabriel.corona@loria.fr>
Wed, 10 Jun 2015 15:35:17 +0000 (17:35 +0200)
commitc0ae635db715a7d6f260872689f27a75e0ce4b98
tree15c1a93483bb0746ad739cbb2eac3ce65e76188a
parentd483f591fd771565b580ae73a6fc3c18b8ef4137
[Windows] Fix access to root log categories from other libs

If we `dllexport` the root log category, MinGW does not want us to
take its address with the error:

> initializer element is not constant

When using auto-import, MinGW is happy.

We should handle this for non-root log categories as well.
include/xbt/log.h