summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorAlexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de>2004-03-17 20:32:13 +0000
committerAlexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de>2004-03-17 20:32:13 +0000
commitcbe23f3df4fc7ebce5d77e2cf6a35a09242aba1b (patch)
tree8dc6a0307b625dc04df471c0dbd8d485c4b90424 /util.c
parenta46389d96c54351cd95614f1e5eae495f51957f0 (diff)
merge with XORG-RELEASE-1 (tag XORG-CYGWIN-LAST-MERGE)CYGWIN-RELEASE-1-MERGE
Diffstat (limited to 'util.c')
-rw-r--r--util.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/util.c b/util.c
index 0808cdf..69a37ec 100644
--- a/util.c
+++ b/util.c
@@ -19,7 +19,8 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* $XFree86: xc/programs/fonttosfnt/util.c,v 1.8 2003/11/21 05:22:09 dawes Exp $ */
+/* $XdotOrg: xc/programs/fonttosfnt/util.c,v 1.1.4.1.4.2 2004/03/04 19:45:27 kaleb Exp $ */
+/* $XFree86: xc/programs/fonttosfnt/util.c,v 1.10 2003/12/19 02:05:39 dawes Exp $ */
#include <time.h>
#include <string.h>
@@ -36,8 +37,15 @@ THE SOFTWARE.
#include FT_FREETYPE_H
#include FT_INTERNAL_OBJECTS_H
#include FT_BDF_H
+#include "X11/Xos.h"
#include "fonttosfnt.h"
+#ifdef NEED_SNPRINTF
+#undef SCOPE
+#define SCOPE static
+#include "snprintf.c"
+#endif
+
#ifdef __GLIBC__
#define HAVE_TIMEGM
#define HAVE_TM_GMTOFF
@@ -120,13 +128,13 @@ makeName(char *s)
/* Like mktime(3), but UTC rather than local time */
#if defined(HAVE_TIMEGM)
-time_t
+static time_t
mktime_gmt(struct tm *tm)
{
return timegm(tm);
}
#elif defined(HAVE_TM_GMTOFF)
-time_t
+static time_t
mktime_gmt(struct tm *tm)
{
time_t t;
@@ -142,7 +150,7 @@ mktime_gmt(struct tm *tm)
}
#elif defined(HAVE_TZSET)
/* Taken from the Linux timegm(3) man page */
-time_t
+static time_t
mktime_gmt(struct tm *tm)
{
time_t t;