Browse Source

* Windows build fixes here and there.

tags/v0.99.beta14
Sam Hocevar sam 17 years ago
parent
commit
9c951cebb2
3 changed files with 5 additions and 2 deletions
  1. +2
    -2
      cucul/figfont.c
  2. +2
    -0
      cxx/caca++.cpp
  3. +1
    -0
      msvc/config.h

+ 2
- 2
cucul/figfont.c View File

@@ -306,13 +306,13 @@ cucul_figfont_t * open_figfont(char const *path)
#if !defined __KERNEL__ && defined HAVE_SNPRINTF
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
cxx/caca++.cpp View File

@@ -18,6 +18,8 @@
* so on.
*/

#include "config.h"

#include <iostream>

#include "caca++.h"


+ 1
- 0
msvc/config.h View File

@@ -56,3 +56,4 @@
#define inline __inline
#endif
#define strcasecmp stricmp
#define snprintf _snprintf

Loading…
Cancel
Save