]> git.pld-linux.org Git - packages/cmocka.git/commitdiff
- added function patch (use __func__ instead of __FUNCTION__ when in >= C99/C++11... auto/th/cmocka-1.0.0-2
authorJakub Bogusz <qboosh@pld-linux.org>
Fri, 1 Jul 2016 15:57:01 +0000 (17:57 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Fri, 1 Jul 2016 15:57:26 +0000 (17:57 +0200)
- release 2

cmocka-function.patch [new file with mode: 0644]
cmocka.spec

diff --git a/cmocka-function.patch b/cmocka-function.patch
new file mode 100644 (file)
index 0000000..c4f62c5
--- /dev/null
@@ -0,0 +1,11 @@
+--- cmocka-1.0.0/include/cmocka.h.orig 2015-02-13 13:50:50.000000000 +0100
++++ cmocka-1.0.0/include/cmocka.h      2016-07-01 06:08:43.313760702 +0200
+@@ -53,7 +53,7 @@
+  */
+ /* For those who are used to __func__ from gcc. */
+-#ifndef __func__
++#if (!defined(__STDC_VERSION__) || (__STDC_VERSION__ < 199901L)) && (!defined(__cplusplus) || (__cplusplus < 201103L)) && !defined(__func__)
+ #define __func__ __FUNCTION__
+ #endif
index 07f344c8f19504193335757b6141033a60ce860d..76d76bd860da04fb13268770b47b43f37aade0f0 100644 (file)
@@ -2,12 +2,13 @@ Summary:      Fork of Google's cmockery unit testing framework
 Summary(pl.UTF-8):     Odgałęzienie szkieletu testów jednostkowych cmockery Google'a
 Name:          cmocka
 Version:       1.0.0
-Release:       1
+Release:       2
 License:       Apache v2.0
 Group:         Libraries
 #Source0Download: https://open.cryptomilk.org/projects/cmocka/files
 Source0:       https://open.cryptomilk.org/attachments/download/54/%{name}-%{version}.tar.xz
 # Source0-md5: 3e68580d9c97601dd983cf098931f987
+Patch0:                %{name}-function.patch
 URL:           http://cmocka.org/
 BuildRequires: cmake >= 2.6.0
 BuildRequires: tar >= 1:1.22
@@ -38,6 +39,7 @@ Pliki programistyczne szkieletu cmocka.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 install -d build
This page took 0.151328 seconds and 4 git commands to generate.