commit | b99a3ccddfde468cf280fdda4e924c8e22e22d50 | [log] [tgz] |
---|---|---|
author | Prabir Pradhan <prabirmsp@google.com> | Wed Aug 18 08:49:49 2021 -0700 |
committer | Prabir Pradhan <prabirmsp@google.com> | Wed Aug 18 10:24:55 2021 -0700 |
tree | 691a0fcbef68a6a703a2525f38f70c874898d000 | |
parent | 38fe3c5962a451cfc552f0a23572b10c147ca0df [diff] |
Undefine NAN after including it in Looper.h Looper.h needs to include the header for unordered_map, which itself includes math.h, which defines the macro NAN. Some HALs use enums called NAN, which causes a build error if the NAN macro is defined. We need to undef NAN in these cases after including Looper.h. Bug: 195020232 Test: presubmit: checkbuild Merged-In: I63bba8ea809a12571ddc88cd1d20f2adeedf0b30 Change-Id: I63bba8ea809a12571ddc88cd1d20f2adeedf0b30