tests/test_properties.c

changeset 1661
a389bf17eaaa
parent 1628
b15ed93f2aa7
equal deleted inserted replaced
1660:802ab24f67aa 1661:a389bf17eaaa
490 490
491 cxPropertiesDestroy(&prop); 491 cxPropertiesDestroy(&prop);
492 } 492 }
493 493
494 static FILE *cx_opentmp(char *tpl) { 494 static FILE *cx_opentmp(char *tpl) {
495 #if defined _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 200809L 495 #ifdef WITH_MKSTEMP
496 strcpy(tpl, "ucxtestXXXXXX"); 496 strcpy(tpl, "ucxtestXXXXXX");
497 int fd = mkstemp(tpl); 497 int fd = mkstemp(tpl);
498 if (fd < 0) return NULL; 498 if (fd < 0) return NULL;
499 return fdopen(fd, "w"); 499 return fdopen(fd, "w");
500 #else 500 #else

mercurial