~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzleclient/errmsg.h

  • Committer: Monty Taylor
  • Date: 2009-03-04 02:16:28 UTC
  • mto: (917.1.2 mordred)
  • mto: This revision was merged to the branch mainline in revision 912.
  • Revision ID: mordred@inaugust.com-20090304021628-rfq0b16uoi09g8tx
Fix to make VPATH builds work again.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#ifndef _libdrizzle_errmsg_h
21
 
#define _libdrizzle_errmsg_h
 
20
#ifndef LIBDRIZZLECLIENT_ERRMSG_H
 
21
#define LIBDRIZZLECLIENT_ERRMSG_H
22
22
 
23
23
/* Error messages for MySQL clients */
24
24
/* (Error messages for the daemon are in sql/share/errmsg.txt) */
25
25
 
26
26
#ifdef  __cplusplus
27
 
extern "C" {
28
 
#endif
29
 
const char * get_client_error(unsigned int err_index);
30
 
#ifdef  __cplusplus
31
 
}
32
 
#endif
 
27
extern "C"
 
28
#endif
 
29
const char * drizzleclient_get_client_error(unsigned int err_index);
33
30
 
34
31
#define CR_MIN_ERROR    2000  /* For easier client code */
35
32
#define CR_MAX_ERROR    2999
36
33
#if !defined(ER)
37
 
#define ER(X) get_client_error((X)-CR_MIN_ERROR)
 
34
#define ER(X) drizzleclient_get_client_error((X)-CR_MIN_ERROR)
38
35
#endif
39
36
#define CLIENT_ERRMAP    2  /* Errormap used by my_error() */
40
37