summaryrefslogtreecommitdiffstats
path: root/examples/example01_instance_info.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/example01_instance_info.cpp')
-rw-r--r--examples/example01_instance_info.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/example01_instance_info.cpp b/examples/example01_instance_info.cpp
index 97549a6..aa32b28 100644
--- a/examples/example01_instance_info.cpp
+++ b/examples/example01_instance_info.cpp
@@ -15,7 +15,11 @@
// Print information about an instance (/api/v1/instance).
-#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>