X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2Ftempname.C;h=f15ec1a6f0d63fc38a93e6a2eb9cb69b5dd1b930;hb=c9265e7ccb05dff61b0a184de398542dd9b23910;hp=88f142bac4784465d1e3cb5da4290807d638e04c;hpb=5b787c3c3345be607c53ec77015b464e5fbfddf8;p=lyx.git diff --git a/src/support/tempname.C b/src/support/tempname.C index 88f142bac4..f15ec1a6f0 100644 --- a/src/support/tempname.C +++ b/src/support/tempname.C @@ -18,18 +18,14 @@ namespace { inline int make_tempfile(char * templ) { -#ifdef HAVE_MKSTEMP +#if defined(HAVE_MKSTEMP) return ::mkstemp(templ); -#else -#ifdef HAVE_MKTEMP +#elif defined(HAVE_MKTEMP) // This probably just barely works... ::mktemp(templ); return ::open(templ, O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR); #else -#ifdef WITH_WARNINGS -#warning FIX FIX FIX -#endif -#endif +#error FIX FIX FIX #endif }