summaryrefslogtreecommitdiffstats
path: root/examples/example02_streaming.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/example02_streaming.cpp')
-rw-r--r--examples/example02_streaming.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/example02_streaming.cpp b/examples/example02_streaming.cpp
index 4a24b3c..748e5f8 100644
--- a/examples/example02_streaming.cpp
+++ b/examples/example02_streaming.cpp
@@ -15,7 +15,11 @@
// Print new public events (/api/v1/streaming/public).
-#include "mastodonpp.hpp"
+#if __has_include("mastodonpp.hpp")
+# include "mastodonpp.hpp" // We're building mastodonpp.
+#else
+# include <mastodonpp/mastodonpp.hpp> // We're building outside mastodonpp.
+#endif
#include <chrono>
#include <iostream>