commit | dda604440bd546c041106624c37dda4569420b9d | [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 08:55:27 2021 -0700 |
tree | 1d8f0e1f3846a45643ab4624655340382d722bbb | |
parent | 02094ceb9e5fc4a95acee0dcd5eb3dca1b7d9c8e [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 Change-Id: I63bba8ea809a12571ddc88cd1d20f2adeedf0b30