Skip to content

Commit d0d1632

Browse files
justinctlamNSExceptional
authored andcommitted
Add foundation header to ActivityStreamSPI. (#461)
* 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.
1 parent 79e22cf commit d0d1632

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Classes/GlobalStateExplorers/SystemLog/ActivityStreamAPI.h

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
#ifndef ActivityStreamSPI_h
1515
#define ActivityStreamSPI_h
1616

17+
#include <Foundation/Foundation.h>
18+
1719
#include <sys/time.h>
1820
// #include <xpc/xpc.h>
1921

0 commit comments

Comments
 (0)