comparison libfaim/aim_meta.c @ 840:595ac7759563

[gaim-migrate @ 850] lots of (mostly useless for us) libfaim changes. should help portability, but it was always portable between unices.... stupid win32ers. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 04 Sep 2000 23:37:32 +0000
parents b402a23f35df
children
comparison
equal deleted inserted replaced
839:8f66e00af045 840:595ac7759563
8 */ 8 */
9 9
10 #include <faim/aim.h> 10 #include <faim/aim.h>
11 /* #include <aim_buildcode.h> generated by mkbuildinfo.sh */ 11 /* #include <aim_buildcode.h> generated by mkbuildinfo.sh */
12 12
13 char *aim_getbuilddate(void) 13 faim_export char *aim_getbuilddate(void)
14 { 14 {
15 return AIM_BUILDDATE; 15 return AIM_BUILDDATE;
16 } 16 }
17 17
18 char *aim_getbuildtime(void) 18 faim_export char *aim_getbuildtime(void)
19 { 19 {
20 return AIM_BUILDTIME; 20 return AIM_BUILDTIME;
21 } 21 }
22 22
23 char *aim_getbuildstring(void) 23 faim_export char *aim_getbuildstring(void)
24 { 24 {
25 static char string[100]; 25 static char string[100];
26 26
27 snprintf(string, 99, "%d.%d.%d-%s%s", 27 snprintf(string, 99, "%d.%d.%d-%s%s",
28 FAIM_VERSION_MAJOR, 28 FAIM_VERSION_MAJOR,
31 aim_getbuilddate(), 31 aim_getbuilddate(),
32 aim_getbuildtime()); 32 aim_getbuildtime());
33 return string; 33 return string;
34 } 34 }
35 35
36 #if debug > 0
37 faim_internal void faimdprintf(int dlevel, const char *format, ...)
38 {
39 if (dlevel >= debug) {
40 va_list ap;
41
42 va_start(ap, format);
43 vfprintf(stderr, format, ap);
44 va_end(ap);
45 }
46 return;
47 }
48 #else
49 faim_internal void faimdprintf(int dlevel, const char *format, ...)
50 {
51 return;
52 }
53 #endif