]> sigrok.org Git - pulseview.git/commit
pv/exprtk.hpp: Fix Windows build issues.
authorUwe Hermann <redacted>
Wed, 16 Sep 2020 18:51:54 +0000 (20:51 +0200)
committerUwe Hermann <redacted>
Wed, 16 Sep 2020 18:51:54 +0000 (20:51 +0200)
commit4788af1e3e48461cc60d1fc035e5de64e914c03d
tree15f358a69f1d32d762612414c8b341352d9a75c8
parent69e950969e45ddbf516069c28f72f5696c53af5d
pv/exprtk.hpp: Fix Windows build issues.

Define NOGDI and NORESOURCE in order to avoid unneeded namespace
pollution caused by <windows.h>, which leads to errors such as:

  libsigrokcxx/enums.hpp:374:36: error: expected unqualified-id before numeric constant
    static const QuantityFlag * const RELATIVE;
                                      ^

  libsigrokcxx/enums.hpp:161:32: error: expected unqualified-id before numeric constant
    static const Quantity * const DIFFERENCE;
                                  ^
pv/exprtk.hpp