summaryrefslogtreecommitdiffstats
path: root/examples/example04_post_with_attachment.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/example04_post_with_attachment.cpp')
-rw-r--r--examples/example04_post_with_attachment.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/example04_post_with_attachment.cpp b/examples/example04_post_with_attachment.cpp
index f40170f..2f8b3db 100644
--- a/examples/example04_post_with_attachment.cpp
+++ b/examples/example04_post_with_attachment.cpp
@@ -15,7 +15,11 @@
// Post a status (/api/v1/status) with an attachment (/api/v1/media).
-#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>