diff -uNr cmockery-0.1.2.orig/src/cmockery.c cmockery-0.1.2/src/cmockery.c
|
|
|
13 | 13 | * See the License for the specific language governing permissions and |
14 | 14 | * limitations under the License. |
15 | 15 | */ |
| 16 | #ifdef HAVE_CONFIG_H |
| 17 | #include "config.h" |
| 18 | #endif |
| 19 | #ifdef HAVE_MALLOC_H |
16 | 20 | #include <malloc.h> |
| 21 | #endif |
17 | 22 | #include <setjmp.h> |
18 | 23 | #ifndef _WIN32 |
19 | 24 | #include <signal.h> |
diff -uNr cmockery-0.1.2.orig/src/example/allocate_module.c cmockery-0.1.2/src/example/allocate_module.c
|
|
|
13 | 13 | * See the License for the specific language governing permissions and |
14 | 14 | * limitations under the License. |
15 | 15 | */ |
| 16 | #ifdef HAVE_CONFIG_H |
| 17 | #include "config.h" |
| 18 | #endif |
| 19 | #ifdef HAVE_MALLOC_H |
16 | 20 | #include <malloc.h> |
| 21 | #endif |
| 22 | #include <sys/types.h> |
17 | 23 | |
18 | 24 | #if UNIT_TESTING |
19 | 25 | extern void* _test_malloc(const size_t size, const char* file, const int line); |
diff -uNr cmockery-0.1.2.orig/src/example/calculator.c cmockery-0.1.2/src/example/calculator.c
|
|
|
16 | 16 | |
17 | 17 | // A calculator example used to demonstrate the cmockery testing library. |
18 | 18 | |
| 19 | #ifdef HAVE_CONFIG_H |
| 20 | #include "config.h" |
| 21 | #endif |
19 | 22 | #include <assert.h> |
| 23 | #ifdef HAVE_MALLOC_H |
20 | 24 | #include <malloc.h> |
| 25 | #endif |
21 | 26 | #include <stdio.h> |
22 | 27 | #include <stdlib.h> |
23 | 28 | #include <string.h> |