make CPP condition depend on HOST OS (#321)

This commit is contained in:
Evgeny Poberezkin authored and GitHub committed 2022-02-18 08:12:08 +00:00
1 parent c1f5f9d846
commit dff5cad1be
2 files changed
+1 -4

No files matched your search

+1 -1
View File
@@ -98,7 +98,7 @@ enumJSON tagModifier =
}
sumTypeJSON :: (String -> String) -> J.Options
#if defined(IOS)
#if defined(darwin_HOST_OS)
sumTypeJSON = singleFieldJSON
#else
sumTypeJSON = taggedObjectJSON