diff --git a/src/mac/carbon/utils.cpp b/src/mac/carbon/utils.cpp index cf7d76b624..3e999b65e7 100644 --- a/src/mac/carbon/utils.cpp +++ b/src/mac/carbon/utils.cpp @@ -40,6 +40,7 @@ #include #endif +#if wxUSE_GUI #if TARGET_API_MAC_OSX #include #else @@ -50,6 +51,7 @@ #include #include #include +#endif // wxUSE_GUI #include "wx/mac/private.h" // includes mac headers