Tue, 23 Dec 2025 17:08:14 +0100
fixes that cx_list_default_insert_array() has the wrong nonnull attribute when used for cxListEmplaceArray()
fixes #790
|
1661
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
1 | #include <stdlib.h> |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
2 | |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
3 | static void test_mkstemp() { |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
4 | char tpl[] = "/tmp/testXXXXXX"; |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
5 | int fd = mkstemp(tpl); |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
6 | // never called, no need to close fd |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
7 | } |
|
1413
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
8 | |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
9 | int main() { |
|
1661
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
10 | return 0; |
|
1413
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
11 | } |