#ifndef OCTYPES_H_
#define OCTYPES_H_
+#include "platform_features.h"
#include "ocstackconfig.h"
#include <stdbool.h>
#include <stdint.h>
/** pointer to its data.*/
uint8_t optionData[MAX_HEADER_OPTION_DATA_LENGTH];
-#ifdef __cplusplus
+#ifdef SUPPORTS_DEFAULT_CTOR
OCHeaderOption() = default;
OCHeaderOption(OCTransportProtocolID pid,
uint16_t optId,
/** A pointer to a function to delete the context when this callback is removed.*/
OCClientContextDeleter cd;
-#ifdef __cplusplus
+#ifdef SUPPORTS_DEFAULT_CTOR
OCCallbackData() = default;
OCCallbackData(void* ctx, OCClientResponseHandler callback, OCClientContextDeleter deleter)
:context(ctx), cb(callback), cd(deleter){}