systemclock: Reorganize defined checks for parts of GstSystemClock
authortyler-aicradle <tyler@safex.ai>
Wed, 26 May 2021 17:55:42 +0000 (12:55 -0500)
committertyler-aicradle <tyler@safex.ai>
Thu, 27 May 2021 14:25:24 +0000 (09:25 -0500)
commitbb77f41abf205e8e0e525c92f33954c0ab0ac7bc
tree2a8c03081926ca2d0c2ddc109049564efc123864
parentdd22ec68d203b292ca16c555f9d1db58e37cea8f
systemclock: Reorganize defined checks for parts of GstSystemClock

The gst_system_clock_get_internal_time and
gst_system_clock_get_resolution functions had some nested defined checks
making this code somewhat harder to reason about and much harder to
change. The logical meaning of the checks has changed but the actual
code coming out of the pre-processor should not have changed
significantly. The main logical change was flattening the checks for
existence of posix timing functionality, from what I can tell these
functions aren't available on Windows where they were trying to be
included. I have checked the Linux and macOS output and they are
functionally unchanged.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/829>
gst/gstsystemclock.c