Skip to content

Commit c342352

Browse files
committed
Cosmetic fixes (NFC)
- Fix includes order - Add comments after endifs to indicate what they end
1 parent 14197f6 commit c342352

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

stdlib/public/Platform/Misc.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
#include <sys/types.h>
14-
#include <sys/stat.h>
1513
#include <fcntl.h>
1614
#include <semaphore.h>
15+
#include <sys/types.h>
16+
#include <sys/stat.h>
1717

1818
extern int
1919
_swift_Platform_open(const char *path, int oflag, mode_t mode) {
@@ -62,12 +62,12 @@ extern long double
6262
_swift_Darwin_lgammal_r(long double x, int *psigngam) {
6363
return lgammal_r(x, psigngam);
6464
}
65-
#endif
65+
#endif // defined(__APPLE__)
6666

6767
#if defined(__FreeBSD__)
6868
extern char **
6969
_swift_FreeBSD_getEnv() {
7070
extern char **environ;
7171
return environ;
7272
}
73-
#endif
73+
#endif // defined(__FreeBSD__)

0 commit comments

Comments
 (0)