use C style comments

This commit is contained in:
Thomas Bernard 2021-05-12 00:09:28 +02:00
parent 1d38b37732
commit 56aa707a75
No known key found for this signature in database
GPG Key ID: DB511043A31ACAAF
1 changed files with 6 additions and 6 deletions

View File

@ -3,7 +3,7 @@
* Project : miniupnp
* Web : http://miniupnp.free.fr/ or https://miniupnp.tuxfamily.org/
* Author : Thomas BERNARD
* copyright (c) 2005-2020 Thomas Bernard
* copyright (c) 2005-2021 Thomas Bernard
* This software is subjet to the conditions detailed in the
* provided LICENCE file. */
#include <stdio.h>
@ -466,10 +466,10 @@ static int upnp_gettimeofday(struct timeval * tv)
#if defined(__APPLE__)
#if defined(__clang__)
if (__builtin_available(macOS 10.12, iOS 10.0, tvOS 10.0, watchOS 3.0, *)) {
#else // !defined(__clang__)
#else /* !defined(__clang__) */
if (clock_gettime != NULL) {
#endif // defined(__clang__)
#endif // defined(__APPLE__)
#endif /* defined(__clang__) */
#endif /* defined(__APPLE__) */
struct timespec ts;
int ret_code = clock_gettime(UPNP_CLOCKID, &ts);
if (ret_code == 0)
@ -482,10 +482,10 @@ static int upnp_gettimeofday(struct timeval * tv)
}
else
{
// fall-back for earlier Apple platforms
/* fall-back for earlier Apple platforms */
return gettimeofday(tv, NULL);
}
#endif // defined(__APPLE__)
#endif /* defined(__APPLE__) */
#else
return gettimeofday(tv, NULL);
#endif