From ac8f668023148442ecd06c27ee2d2b376290e42d Mon Sep 17 00:00:00 2001 From: Renaud (Nel) Morvan Date: Fri, 23 Jul 2010 20:09:34 +0100 Subject: New formula: cmockery Signed-off-by: Adam Vandenberg --- Library/Formula/cmockery.rb | 72 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 Library/Formula/cmockery.rb (limited to 'Library') diff --git a/Library/Formula/cmockery.rb b/Library/Formula/cmockery.rb new file mode 100644 index 000000000..6a912c4af --- /dev/null +++ b/Library/Formula/cmockery.rb @@ -0,0 +1,72 @@ +require 'formula' + +class Cmockery ++#endif + #include + #ifndef _WIN32 + #include +diff -uNr cmockery-0.1.2.orig/src/example/allocate_module.c cmockery-0.1.2/src/example/allocate_module.c +--- cmockery-0.1.2.orig/src/example/allocate_module.c 2008-08-29 16:23:29.000000000 -0600 ++++ cmockery-0.1.2/src/example/allocate_module.c 2009-05-31 15:29:48.000000000 -0600 +@@ -13,7 +13,13 @@ + * See the License for the specific language governing permissions and + * limitations under the License. + */ ++#ifdef HAVE_CONFIG_H ++#include "config.h" ++#endif ++#ifdef HAVE_MALLOC_H + #include ++#endif ++#include + + #if UNIT_TESTING + 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 +--- cmockery-0.1.2.orig/src/example/calculator.c 2008-08-29 16:23:29.000000000 -0600 ++++ cmockery-0.1.2/src/example/calculator.c 2009-05-31 15:30:08.000000000 -0600 +@@ -16,8 +16,13 @@ + + // A calculator example used to demonstrate the cmockery testing library. + ++#ifdef HAVE_CONFIG_H ++#include "config.h" ++#endif + #include ++#ifdef HAVE_MALLOC_H + #include ++#endif + #include + #include + #include -- cgit v1.2.3