X-Git-Url: https://git.toastfreeware.priv.at/gregoa/bti.git/blobdiff_plain/c5dc356dba3959ca368bb1ab03e661e99c549e89..0a3aefca19fb0b24e1970f30f577a1f48f91be74:/bti.c diff --git a/bti.c b/bti.c index 1050e0a..2ae7b4c 100644 --- a/bti.c +++ b/bti.c @@ -16,6 +16,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#define _GNU_SOURCE + #include #include #include @@ -35,7 +37,6 @@ #include #include #include -#include "bti_version.h" #define zalloc(size) calloc(size, 1) @@ -90,7 +91,7 @@ struct bti_curl_buffer { static void display_help(void) { fprintf(stdout, "bti - send tweet to twitter or identi.ca\n"); - fprintf(stdout, "Version: " BTI_VERSION "\n"); + fprintf(stdout, "Version: " VERSION "\n"); fprintf(stdout, "Usage:\n"); fprintf(stdout, " bti [options]\n"); fprintf(stdout, "options are:\n"); @@ -114,7 +115,7 @@ static void display_help(void) static void display_version(void) { - fprintf(stdout, "bti - version %s\n", BTI_VERSION); + fprintf(stdout, "bti - version %s\n", VERSION); } static struct session *session_alloc(void)