make CPP condition depend on HOST OS (#321)

This commit is contained in:
Evgeny Poberezkin
2022-02-18 08:12:08 +00:00
committed by GitHub
parent c1f5f9d846
commit dff5cad1be
2 changed files with 1 additions and 4 deletions
-3
View File
@@ -27,9 +27,6 @@ extra-source-files:
README.md
CHANGELOG.md
if (os(darwin))
ghc-option: -DIOS
library
exposed-modules:
Simplex.Messaging.Agent
+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