a7b6545028
I fail to build TIFF code: it requires access to libtiff internals but it unavailable with libtiff prom ports. Probably pre build form thirdparty/tiff-4.0.3 should fix this, but I don't check this. Tiff code disabled for work but available in options. I fail with SSE2 too, there is some mess with class initialization: TRaster32P rout32 = rout; have no idea how to fix it. If some one want to play with it, then try to build with CFLAGS+= -DUSE_SSE2 -DDWORD=uint32_t -D_aligned_malloc=aligned_alloc -D_aligned_free=free on non windows system. FarmServer::queryHwInfo() - now uses TSystem::***() to collect system info, to avoid code duplication. Add pthread as required lib.
39 lines
591 B
C
39 lines
591 B
C
#pragma once
|
|
|
|
#ifndef TFILE_IO_H
|
|
#define TFILE_IO_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <stdio.h>
|
|
|
|
#ifdef MACOSX
|
|
#include <stddef.h>
|
|
#endif
|
|
|
|
#if defined(LINUX) || defined(FREEBSD)
|
|
#include <wchar.h>
|
|
#endif
|
|
|
|
char *convertWCHAR2CHAR(const wchar_t *fname);
|
|
|
|
#if defined(MACOSX) || defined(LINUX) || defined(FREEBSD)
|
|
|
|
#include <sys/types.h>
|
|
#include <sys/stat.h>
|
|
#include <unistd.h>
|
|
|
|
FILE *_wfopen(const wchar_t *fname, const wchar_t *mode);
|
|
int _wstat(const wchar_t *fname, struct stat *buf);
|
|
int _wremove(const wchar_t *fname);
|
|
#else
|
|
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|