mirror of
https://github.com/nestriness/cdc-file-transfer.git
synced 2026-01-30 16:45:35 +02:00
Build id is an optional unique identifier specified during cdc_rsync build via CDC_BUILD_VERSION definition. If build id specified on both client and server components it will be used to check the version of server component instead of file size + modified time.
11 lines
256 B
C
11 lines
256 B
C
#ifndef BUILD_VERSION
|
|
#define DEV_BUILD_VERSION "DEV"
|
|
#ifdef CDC_BUILD_VERSION
|
|
#define TO_STR(arg) #arg
|
|
#define TO_STR_VALUE(arg) TO_STR(arg)
|
|
#define BUILD_VERSION TO_STR_VALUE(CDC_BUILD_VERSION)
|
|
#else
|
|
#define BUILD_VERSION DEV_BUILD_VERSION
|
|
#endif
|
|
#endif
|