~ubuntu-branches/ubuntu/maverick/uim/maverick

« back to all changes in this revision

Viewing changes to replace/os_dep.h

  • Committer: Bazaar Package Importer
  • Author(s): Masahito Omote
  • Date: 2008-06-25 19:56:33 UTC
  • mfrom: (3.1.18 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080625195633-8jljph4rfq00l8o7
Tags: 1:1.5.1-2
* uim-tcode: provide tutcode-custom.scm, tutcode-bushudic.scm
  and tutcode-rule.scm (Closes: #482659)
* Fix FTBFS: segv during compile (Closes: #483078).
  I personally think this bug is not specific for uim but is a optimization
  problem on gcc-4.3.1. (https://bugs.freedesktop.org/show_bug.cgi?id=16477)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 
3
 
  Copyright (c) 2003-2006 uim Project http://uim.freedesktop.org/
 
3
  Copyright (c) 2003-2008 uim Project http://code.google.com/p/uim/
4
4
 
5
5
  All rights reserved.
6
6
 
31
31
 
32
32
*/
33
33
 
34
 
#ifndef _os_dep_h_included_
35
 
#define _os_dep_h_included_
 
34
#ifndef UIM_REPLACE_OS_DEP_H
 
35
#define UIM_REPLACE_OS_DEP_H
 
36
 
 
37
/* stdint.h compatible type definitions */
 
38
#if HAVE_STDINT_H
 
39
#include <stdint.h>
 
40
#endif
 
41
#if HAVE_INTTYPES_H
 
42
#include <inttypes.h>
 
43
#endif
 
44
#if HAVE_SYS_INTTYPES_H
 
45
#include <sys/inttypes.h>
 
46
#endif
 
47
#if HAVE_SYS_TYPES_H
 
48
#include <sys/types.h>
 
49
#endif
 
50
#if HAVE_STDARG_H
 
51
#include <stdarg.h>
 
52
#endif
 
53
#include <limits.h>
36
54
 
37
55
#ifdef __cplusplus
38
56
extern "C" {
69
87
size_t strlcat(char *dst, const char *src, size_t siz);
70
88
#endif
71
89
 
 
90
#include "fake-rfc2553.h"
 
91
 
 
92
#ifndef HAVE_VASPRINTF
 
93
#define vasprintf       uim_vasprintf
 
94
int vasprintf(char **ret, const char *format, va_list ap);
 
95
#endif
 
96
 
 
97
#ifndef HAVE_ASPRINTF
 
98
#define asprintf        uim_asprintf
 
99
int asprintf(char **ret, const char *format, ...);
 
100
#endif
 
101
 
 
102
#if !defined(HAVE_VSNPRINTF) || defined(BROKEN_SNPRINTF)
 
103
#define vsnprintf       uim_vsnprintf
 
104
int vsnprintf(char *str, size_t size, const char *format, va_list ap);
 
105
#endif
 
106
 
 
107
#if !defined(HAVE_SNPRINTF) || defined(BROKEN_SNPRINTF)
 
108
#define snprintf        uim_snprintf
 
109
int snprintf(char *str, size_t size, const char *format, ...);
 
110
#endif
 
111
 
 
112
#ifndef HAVE_STRTOLL
 
113
#define strtoll uim_strtoll
 
114
long long strtoll(const char *, char **, int);
 
115
#endif
 
116
 
 
117
#ifndef HAVE_STRTONUM
 
118
#define strtonum        uim_strtonum
 
119
long long strtonum(const char *numstr, long long minval, long long maxval, const char **errstrp);
 
120
#endif
 
121
 
72
122
#ifdef __cplusplus
73
123
}
74
124
#endif
75
 
#endif
 
125
#endif /* UIM_REPLACE_OS_DEP_H */