~ubuntu-branches/ubuntu/precise/ncbi-tools6/precise

« back to all changes in this revision

Viewing changes to corelib/ncbimisc.c

  • Committer: Bazaar Package Importer
  • Author(s): Aaron M. Ucko
  • Date: 2005-03-27 12:00:15 UTC
  • mfrom: (2.1.2 hoary)
  • Revision ID: james.westby@ubuntu.com-20050327120015-embhesp32nj73p9r
Tags: 6.1.20041020-3
* Fix FTBFS under GCC 4.0 caused by inconsistent use of "static" on
  functions.  (Closes: #295110.)
* Add a watch file, now that we can.  (Upstream's layout needs version=3.)

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
*
30
30
* Version Creation Date:   10/23/91
31
31
*
32
 
* $Revision: 6.21 $
 
32
* $Revision: 6.26 $
33
33
*
34
34
* File Description: 
35
35
*       miscellaneous functions
43
43
* 02-16-94 Epstein     Retired Gestalt functions and definitions
44
44
*
45
45
* $Log: ncbimisc.c,v $
 
46
* Revision 6.26  2004/03/25 15:37:24  lavr
 
47
* Change UINT64_MAX into UINT8_MAX back for the toolkit to compile portably
 
48
*
 
49
* Revision 6.25  2004/03/24 18:48:49  lebedev
 
50
* Use UINT64_MAX in divray_init function
 
51
*
 
52
* Revision 6.24  2003/12/03 02:10:23  kans
 
53
* added defines missing from Mac OS 10.3 headers
 
54
*
 
55
* Revision 6.23  2002/11/06 21:25:10  ucko
 
56
* Don't assume MIPS is IRIX, or HPPA is HP/UX; allow Linux too, for both.
 
57
*
 
58
* Revision 6.22  2002/06/13 16:14:07  kans
 
59
* fix includes for OS_UNIX_DARWIN with WIN_MAC (EN)
 
60
*
46
61
* Revision 6.21  2001/04/05 03:03:28  juran
47
62
* Defined our own C2PStr() and P2Cstr() for use with Carbon (which omits them).
48
63
*
149
164
#include <TextUtils.h>
150
165
#endif
151
166
 
 
167
/* Missing from /usr/include/gcc/darwin/3.3/machine/limits.h */
 
168
#ifdef __MWERKS__
 
169
#ifdef OS_UNIX_DARWIN
 
170
#ifndef __CHAR_BIT__
 
171
#define __CHAR_BIT__ 8
 
172
#endif
 
173
#endif
 
174
#endif
 
175
/* End missing from /usr/include/gcc/darwin/3.3/machine/limits.h */
 
176
 
152
177
/*
153
178
TRIPLE_MARK is the character inserted before the thousands, millions,
154
179
billions, etc. digit positions.  Change TRIPLE_MARK to a period
1116
1141
*
1117
1142
*****************************************************************************/
1118
1143
 
1119
 
#ifdef OS_MAC
 
1144
#if defined(OS_MAC) || defined(OS_UNIX_DARWIN)
1120
1145
 
1121
1146
// 2001-03-22:  Joshua Juran
1122
1147
// C2PStr() and P2CStr() do not exist in Carbon, so we roll our own.