mirror of
https://github.com/simplex-chat/simplexmq.git
synced 2026-05-24 23:26:00 +00:00
make CPP condition depend on HOST OS (#321)
This commit is contained in:
committed by
GitHub
parent
c1f5f9d846
commit
dff5cad1be
@@ -27,9 +27,6 @@ extra-source-files:
|
||||
README.md
|
||||
CHANGELOG.md
|
||||
|
||||
if (os(darwin))
|
||||
ghc-option: -DIOS
|
||||
|
||||
library
|
||||
exposed-modules:
|
||||
Simplex.Messaging.Agent
|
||||
|
||||
@@ -98,7 +98,7 @@ enumJSON tagModifier =
|
||||
}
|
||||
|
||||
sumTypeJSON :: (String -> String) -> J.Options
|
||||
#if defined(IOS)
|
||||
#if defined(darwin_HOST_OS)
|
||||
sumTypeJSON = singleFieldJSON
|
||||
#else
|
||||
sumTypeJSON = taggedObjectJSON
|
||||
|
||||
Reference in New Issue
Block a user