~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to include/my_global.h

  • Committer: Brian Aker
  • Date: 2008-07-16 21:28:26 UTC
  • mfrom: (77.3.28 glibclient)
  • Revision ID: brian@tangent.org-20080716212826-p44t3u6v1zb0dmxg
Merge from Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
1006
1006
 
1007
1007
#endif /* WORDS_BIGENDIAN */
1008
1008
 
1009
 
/* sprintf does not always return the number of bytes :- */
1010
 
#ifdef SPRINTF_RETURNS_INT
1011
 
#define my_sprintf(buff,args) sprintf args
1012
 
#else
1013
 
#ifdef SPRINTF_RETURNS_PTR
1014
 
#define my_sprintf(buff,args) ((int)(sprintf args - buff))
1015
 
#else
1016
 
#define my_sprintf(buff,args) ((ulong) sprintf args, (ulong) strlen(buff))
1017
 
#endif
1018
 
#endif
 
1009
/* my_sprintf  was here. RIP */
1019
1010
 
1020
1011
#if defined(HAVE_CHARSET_utf8mb3) || defined(HAVE_CHARSET_utf8mb4)
1021
1012
#define MYSQL_UNIVERSAL_CLIENT_CHARSET "utf8"