diff options
Diffstat (limited to 'libcrystfel/src')
-rw-r--r-- | libcrystfel/src/image-msgpack.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libcrystfel/src/image-msgpack.h b/libcrystfel/src/image-msgpack.h index ad05d8fe..0449c718 100644 --- a/libcrystfel/src/image-msgpack.h +++ b/libcrystfel/src/image-msgpack.h @@ -29,6 +29,10 @@ #ifndef IMAGE_MSGPACK_H #define IMAGE_MSGPACK_H +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + #include "datatemplate.h" #if defined(HAVE_MSGPACK) @@ -55,7 +59,8 @@ static UNUSED int image_msgpack_read(struct image *image, void *data, size_t data_size) { - return 0; + ERROR("MessagePack is not supported in this installation.\n"); + return 1; } static UNUSED ImageFeatureList *image_msgpack_read_peaks(const DataTemplate *dtempl, @@ -63,6 +68,7 @@ static UNUSED ImageFeatureList *image_msgpack_read_peaks(const DataTemplate *dte size_t data_size, int half_pixel_shift) { + ERROR("MessagePack is not supported in this installation.\n"); return NULL; } @@ -71,6 +77,7 @@ static UNUSED double image_msgpack_get_value(const char *name, size_t data_block_size, char *ptype) { + ERROR("MessagePack is not supported in this installation.\n"); *ptype = 'f'; return NAN; } |