From: Florian Forster Date: Wed, 4 May 2016 14:37:14 +0000 (+0200) Subject: src/daemon/plugin.h: Define DATA_MAX_NAME_LEN conditionally. X-Git-Tag: collectd-5.6.0~306 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b4329683a35a886bb0cdd7ce843146eae0d6fd81;p=collectd.git src/daemon/plugin.h: Define DATA_MAX_NAME_LEN conditionally. Issue: #1690 --- diff --git a/src/daemon/plugin.h b/src/daemon/plugin.h index 1e4b3d18..73982279 100644 --- a/src/daemon/plugin.h +++ b/src/daemon/plugin.h @@ -1,5 +1,5 @@ /** - * collectd - src/plugin.h + * collectd - src/daemon/plugin.h * Copyright (C) 2005-2014 Florian octo Forster * * Permission is hereby granted, free of charge, to any person obtaining a @@ -39,7 +39,9 @@ #define PLUGIN_FLAGS_GLOBAL 0x0001 -#define DATA_MAX_NAME_LEN 64 +#ifndef DATA_MAX_NAME_LEN +# define DATA_MAX_NAME_LEN 64 +#endif #define DS_TYPE_COUNTER 0 #define DS_TYPE_GAUGE 1