Use POSIX macros for linux
This commit is contained in:
@@ -141,7 +141,7 @@ _DtCvRunInterp(
|
||||
* write the data to file.
|
||||
*/
|
||||
result = -1;
|
||||
#if defined(linux)
|
||||
#if defined(__linux__)
|
||||
myFd = open(fileName, O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU | S_IRWXG | S_IRWXO);
|
||||
#else
|
||||
myFd = open(fileName, O_WRONLY | O_CREAT | O_TRUNC);
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
#include "CvStringI.h" /* for string functions used by Canvas Engine */
|
||||
#include "StringFuncsI.h" /* for _CEStrcollProc */
|
||||
|
||||
#if !defined(linux)
|
||||
#if !defined(__linux__)
|
||||
# include <iconv.h>
|
||||
#else
|
||||
# define iconv_t int
|
||||
|
||||
Reference in New Issue
Block a user