tahoma2d/toonz/sources/common/tiio/compatibility/tfile_io.h
Rozhuk Ivan a7b6545028 Add FreeBSD (tested) and other BSD systems (not tested) to build and run.
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.
2021-08-31 11:10:48 -04:00

35 lines
569 B
C

#pragma once
#ifndef TFILE_IO_H
#define TFILE_IO_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stdio.h>
#if defined(MACOSX) || defined(LINUX) || defined(FREEBSD)
#include <stddef.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