~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/global.h

  • Committer: Brian Aker
  • Date: 2008-08-10 17:18:41 UTC
  • mfrom: (287.3.13 codestyle)
  • Revision ID: brian@tangent.org-20080810171841-pkvi2ky94wbd0nt5
Merge from Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
597
597
 
598
598
#define NullS           (char *) 0
599
599
 
600
 
#define STDCALL
601
 
 
602
600
/* Typdefs for easyier portability */
603
601
 
604
602
#ifndef HAVE_UCHAR
960
958
 */
961
959
#ifdef __cplusplus
962
960
#include <new>
 
961
#include <string>
 
962
#include <algorithm>
 
963
using namespace std;
 
964
#else
 
965
#define max(a, b)       ((a) > (b) ? (a) : (b))
 
966
#define min(a, b)       ((a) < (b) ? (a) : (b))
963
967
#endif
964
968
 
965
969
/* Length of decimal number represented by INT32. */
969
973
#define MY_INT64_NUM_DECIMAL_DIGITS 21
970
974
 
971
975
#ifdef _cplusplus
972
 
#include <string>
973
976
#endif
974
977
 
975
 
/* Define some useful general macros (should be done after all headers). */
976
 
#if !defined(max)
977
 
#define max(a, b)       ((a) > (b) ? (a) : (b))
978
 
#define min(a, b)       ((a) < (b) ? (a) : (b))
979
 
#endif  
980
978
/*
981
979
  Only Linux is known to need an explicit sync of the directory to make sure a
982
980
  file creation/deletion/renaming in(from,to) this directory durable.