add extensions include

This commit is contained in:
2025-02-25 18:29:55 +01:00
parent 60bb4ea06e
commit 8f32b09b17
2 changed files with 7 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
#pragma once
#if __has_include(<sp/extensions/Compress.h>)
#include <sp/extensions/Compress.h>
#endif

View File

@@ -3,6 +3,8 @@
#include <examples/PacketExample.h> #include <examples/PacketExample.h>
#include <memory> #include <memory>
#include <sp/extensions/Extensions.h>
class KeepAliveHandler : public sp::PacketHandler { class KeepAliveHandler : public sp::PacketHandler {
void Handle(const KeepAlivePacket& packet) { void Handle(const KeepAlivePacket& packet) {
std::cout << "KeepAlive handled !\n"; std::cout << "KeepAlive handled !\n";