Browse Source

build on Mac OS X again

tags/v0.99.beta14
Ben Wiley Sittler bsittler 17 years ago
parent
commit
e1603937c7
2 changed files with 9 additions and 2 deletions
  1. +7
    -2
      cucul/figfont.c
  2. +2
    -0
      src/mygetopt.c

+ 7
- 2
cucul/figfont.c View File

@@ -304,15 +304,20 @@ cucul_figfont_t * open_figfont(char const *path)
/* Open font: if not found, try .tlf, then .flf */
f = _cucul_file_open(path, "r");
#if !defined __KERNEL__ && defined HAVE_SNPRINTF

#if (! defined(snprintf)) && ( defined(_WIN32) || defined(WIN32) ) && (! defined(__CYGWIN__))
#define snprintf _snprintf
#endif

if(!f)
{
_snprintf(altpath, 2047, "%s.tlf", path);
snprintf(altpath, 2047, "%s.tlf", path);
altpath[2047] = '\0';
f = _cucul_file_open(altpath, "r");
}
if(!f)
{
_snprintf(altpath, 2047, "%s.flf", path);
snprintf(altpath, 2047, "%s.flf", path);
altpath[2047] = '\0';
f = _cucul_file_open(altpath, "r");
}


+ 2
- 0
src/mygetopt.c View File

@@ -26,8 +26,10 @@

/* DOS / Kernel driver */
#ifndef __intptr_t_defined
#ifndef _UINTPTR_T
typedef unsigned int uintptr_t;
#endif
#endif

#include <stdio.h>
#include <string.h>


Loading…
Cancel
Save