Parcourir la source

build on Mac OS X again

tags/v0.99.beta14
Ben Wiley Sittler bsittler il y a 18 ans
Parent
révision
e1603937c7
2 fichiers modifiés avec 9 ajouts et 2 suppressions
  1. +7
    -2
      cucul/figfont.c
  2. +2
    -0
      src/mygetopt.c

+ 7
- 2
cucul/figfont.c Voir le fichier

@@ -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 Voir le fichier

@@ -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>


Chargement…
Annuler
Enregistrer