Skip to content

Commit

Permalink
PlatformMisc: Swap include order for Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Jul 3, 2024
1 parent e0509eb commit 3c230ba
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/util/platform_misc_mac.mm
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
// SPDX-FileCopyrightText: 2019-2024 Connor McLaughlin <stenzek@gmail.com>
// SPDX-License-Identifier: (GPL-3.0 OR CC-BY-NC-ND-4.0)

#include "metal_layer.h"
#include "platform_misc.h"
#include "window_info.h"

#include "common/log.h"
#include "common/small_string.h"

// Normally, system includes come last. But apparently some of our macro names are redefined...
#include <Cocoa/Cocoa.h>
#include <IOKit/pwr_mgt/IOPMLib.h>
#include <QuartzCore/QuartzCore.h>
Expand All @@ -16,6 +10,13 @@
#include <sys/sysctl.h>
#include <vector>

#include "metal_layer.h"
#include "platform_misc.h"
#include "window_info.h"

#include "common/log.h"
#include "common/small_string.h"

Log_SetChannel(PlatformMisc);

#if __has_feature(objc_arc)
Expand Down

0 comments on commit 3c230ba

Please sign in to comment.