summaryrefslogtreecommitdiffstats
path: root/examples/example06_update_name.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/example06_update_name.cpp')
-rw-r--r--examples/example06_update_name.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/example06_update_name.cpp b/examples/example06_update_name.cpp
index 5232362..2db1a95 100644
--- a/examples/example06_update_name.cpp
+++ b/examples/example06_update_name.cpp
@@ -15,7 +15,11 @@
// Update account display name settings (/api/v1/accounts/update_credentials).
-#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>