Skip to content

Commit

Permalink
Add foundation header to ActivityStreamSPI. (#461)
Browse files Browse the repository at this point in the history
* Add C++ ifdefs around C++ code.

The purpose of this change is to gate C++ code behind a cplusplus define so that FLEX can be made into a module for Swift code.  Swift modules do not allow for C++ code.  However this means if FLEX is used a Swift module, it will not have functionality of the excluded code. Ideally in the future, FLEX can be converted fully to support Swift without bridging headers.

* Revert "Add C++ ifdefs around C++ code."

This reverts commit 77c0220.

* Add include <Foundation/Foundation.h> to ActivityStreamSPI header

We use a different build setup internally, and we need all headers to be able to stand on their own. This file is using NS_ENUM, which is defined in Foundation, without importing it, so we're adding the import to resolve that.
  • Loading branch information
justinctlam authored Aug 19, 2020
1 parent 9a9974c commit 57db7e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Classes/GlobalStateExplorers/SystemLog/ActivityStreamAPI.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
#ifndef ActivityStreamSPI_h
#define ActivityStreamSPI_h

#include <Foundation/Foundation.h>

#include <sys/time.h>
// #include <xpc/xpc.h>

Expand Down

0 comments on commit 57db7e1

Please sign in to comment.