fix: restore cur_name.h
This commit is contained in:
parent
400254820c
commit
22ca66b25c
|
@ -31,6 +31,7 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "cus_name.h"
|
||||||
|
|
||||||
#ifdef WINDOWS
|
#ifdef WINDOWS
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,42 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2019 TAOS Data, Inc. <jhtao@taosdata.com>
|
||||||
|
*
|
||||||
|
* This program is free software: you can use, redistribute, and/or modify
|
||||||
|
* it under the terms of the GNU Affero General Public License, version 3
|
||||||
|
* or later ("AGPL"), as published by the Free Software Foundation.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef _CUS_NAME_H_
|
||||||
|
#define _CUS_NAME_H_
|
||||||
|
|
||||||
|
//
|
||||||
|
// support OEM
|
||||||
|
//
|
||||||
|
#ifndef TD_PRODUCT_NAME
|
||||||
|
#ifdef TD_ENTERPRISE
|
||||||
|
#define TD_PRODUCT_NAME "TDengine Enterprise Edition"
|
||||||
|
#else
|
||||||
|
#define TD_PRODUCT_NAME "TDengine Community Edition"
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef CUS_NAME
|
||||||
|
#define CUS_NAME "TDengine"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef CUS_PROMPT
|
||||||
|
#define CUS_PROMPT "taos"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef CUS_EMAIL
|
||||||
|
#define CUS_EMAIL "<support@taosdata.com>"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif // _CUS_NAME_H_
|
|
@ -17,6 +17,7 @@
|
||||||
#define _TD_UTIL_DEF_H_
|
#define _TD_UTIL_DEF_H_
|
||||||
|
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
|
#include "cur_name.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -79,31 +80,6 @@ extern const int32_t TYPE_BYTES[21];
|
||||||
#define TSDB_DEFAULT_PASS "taosdata"
|
#define TSDB_DEFAULT_PASS "taosdata"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
//
|
|
||||||
// support OEM
|
|
||||||
//
|
|
||||||
#ifndef TD_PRODUCT_NAME
|
|
||||||
#ifdef TD_ENTERPRISE
|
|
||||||
#define TD_PRODUCT_NAME "TDengine Enterprise Edition"
|
|
||||||
#else
|
|
||||||
#define TD_PRODUCT_NAME "TDengine Community Edition"
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CUS_NAME
|
|
||||||
#define CUS_NAME "TDengine"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CUS_PROMPT
|
|
||||||
#define CUS_PROMPT "taos"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CUS_EMAIL
|
|
||||||
#define CUS_EMAIL "<support@taosdata.com>"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#define TSDB_TRUE 1
|
#define TSDB_TRUE 1
|
||||||
#define TSDB_FALSE 0
|
#define TSDB_FALSE 0
|
||||||
#define TSDB_OK 0
|
#define TSDB_OK 0
|
||||||
|
|
|
@ -39,9 +39,7 @@
|
||||||
#include "tconv.h"
|
#include "tconv.h"
|
||||||
|
|
||||||
|
|
||||||
#ifndef CUS_PROMPT
|
#include "cus_name.h"
|
||||||
#define CUS_PROMPT "taos"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define TSC_VAR_NOT_RELEASE 1
|
#define TSC_VAR_NOT_RELEASE 1
|
||||||
#define TSC_VAR_RELEASED 0
|
#define TSC_VAR_RELEASED 0
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
#include "dmUtil.h"
|
#include "dmUtil.h"
|
||||||
#include "tcs.h"
|
#include "tcs.h"
|
||||||
#include "qworker.h"
|
#include "qworker.h"
|
||||||
#include "tdef.h"
|
#include "cus_name.h"
|
||||||
|
|
||||||
// clang-format off
|
// clang-format off
|
||||||
#define DM_APOLLO_URL "The apollo string to use when configuring the server, such as: -a 'jsonFile:./tests/cfg.json', cfg.json text can be '{\"fqdn\":\"td1\"}'."
|
#define DM_APOLLO_URL "The apollo string to use when configuring the server, such as: -a 'jsonFile:./tests/cfg.json', cfg.json text can be '{\"fqdn\":\"td1\"}'."
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
#define _DEFAULT_SOURCE
|
#define _DEFAULT_SOURCE
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#include "taoserror.h"
|
#include "taoserror.h"
|
||||||
|
#include "cus_name.h"
|
||||||
|
|
||||||
#define PROCESS_ITEM 12
|
#define PROCESS_ITEM 12
|
||||||
#define UUIDLEN37 37
|
#define UUIDLEN37 37
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "cus_name.h"
|
||||||
#include "shellInt.h"
|
#include "shellInt.h"
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE.
|
* FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <tdef.h> // include/util/
|
#include "cus_name.h" // include/util/
|
||||||
#include <bench.h>
|
#include <bench.h>
|
||||||
#include "benchLog.h"
|
#include "benchLog.h"
|
||||||
#include <toolsdef.h>
|
#include <toolsdef.h>
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
|
|
||||||
#include <tdef.h> // include/util/
|
#include "cus_name.h" // include/util/
|
||||||
#include "dump.h"
|
#include "dump.h"
|
||||||
#include "dumpUtil.h"
|
#include "dumpUtil.h"
|
||||||
#ifdef WEBSOCKET
|
#ifdef WEBSOCKET
|
||||||
|
|
Loading…
Reference in New Issue