Fix a few compilation warnings on Linux; Fix a possible bug in Mode5 loader; Removed a pair of debug printfs in realpath.c
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1933 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
parent
30e8079236
commit
55f4884e34
@ -32,7 +32,11 @@
|
|||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// On Debian, this is already implied in dirent.h
|
||||||
|
// I don't know which targets need it and what it does. - yr
|
||||||
|
#ifndef _XOPEN_SOURCE
|
||||||
#define _XOPEN_SOURCE 500
|
#define _XOPEN_SOURCE 500
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|||||||
@ -378,9 +378,7 @@ int Analyze_command_line(int argc, char * argv[], char *main_filename, char *mai
|
|||||||
else if (File_exists(argv[index]))
|
else if (File_exists(argv[index]))
|
||||||
{
|
{
|
||||||
file_in_command_line ++;
|
file_in_command_line ++;
|
||||||
printf("PATH RESOLVE %s\n", argv[index]);
|
|
||||||
buffer = Realpath(argv[index], NULL);
|
buffer = Realpath(argv[index], NULL);
|
||||||
printf("returns : %p\n", buffer);
|
|
||||||
|
|
||||||
if (file_in_command_line == 1)
|
if (file_in_command_line == 1)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -2963,7 +2963,7 @@ void Load_CM5(T_IO_Context* context)
|
|||||||
FILE *file;
|
FILE *file;
|
||||||
char filename[MAX_PATH_CHARACTERS];
|
char filename[MAX_PATH_CHARACTERS];
|
||||||
byte value = 0;
|
byte value = 0;
|
||||||
int mod;
|
int mod=0;
|
||||||
short line = 0;
|
short line = 0;
|
||||||
int tx, ty;
|
int tx, ty;
|
||||||
byte buffer[48*6/4];
|
byte buffer[48*6/4];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user