summaryrefslogtreecommitdiffstats
path: root/examples/example03_post_status.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/example03_post_status.cpp')
-rw-r--r--examples/example03_post_status.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/example03_post_status.cpp b/examples/example03_post_status.cpp
index 62fc919..bdf88dc 100644
--- a/examples/example03_post_status.cpp
+++ b/examples/example03_post_status.cpp
@@ -15,7 +15,11 @@
// Post a status (/api/v1/status).
-#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 <iostream>
#include <string>