Ticket #53122: patch-missing-prototypes.diff
File patch-missing-prototypes.diff, 4.8 KB (added by RJVB (René Bertin), 8 years ago) |
---|
-
decryptionresult.cpp
old new 37 37 #include <istream> 38 38 39 39 #include <string.h> 40 // string.h only declares strdup() if __DARWIN_C_LEVEL >= 200112L. 41 // Don't mess with that macro, just provide the prototype: 42 extern "C" { 43 extern char *strdup(const char *); 44 } 40 45 41 46 class GpgME::DecryptionResult::Private 42 47 { -
encryptionresult.cpp
old new 37 37 #include <iterator> 38 38 39 39 #include <string.h> 40 // string.h only declares strdup() if __DARWIN_C_LEVEL >= 200112L. 41 // Don't mess with that macro, just provide the prototype: 42 extern "C" { 43 extern char *strdup(const char *); 44 } 40 45 41 46 class GpgME::EncryptionResult::Private 42 47 { -
importresult.cpp
old new 33 33 #include <cstring> 34 34 35 35 #include <string.h> 36 // string.h only declares strdup() if __DARWIN_C_LEVEL >= 200112L. 37 // Don't mess with that macro, just provide the prototype: 38 extern "C" { 39 extern char *strdup(const char *); 40 } 36 41 37 42 class GpgME::ImportResult::Private 38 43 { -
keygenerationresult.cpp
old new 33 33 #include <cstdlib> 34 34 35 35 #include <string.h> 36 // string.h only declares strdup() if __DARWIN_C_LEVEL >= 200112L. 37 // Don't mess with that macro, just provide the prototype: 38 extern "C" { 39 extern char *strdup(const char *); 40 } 36 41 37 42 class GpgME::KeyGenerationResult::Private 38 43 { -
signingresult.cpp
old new 37 37 #include <iterator> 38 38 39 39 #include <string.h> 40 // string.h only declares strdup() if __DARWIN_C_LEVEL >= 200112L. 41 // Don't mess with that macro, just provide the prototype: 42 extern "C" { 43 extern char *strdup(const char *); 44 } 40 45 41 46 class GpgME::SigningResult::Private 42 47 { -
swdbresult.cpp
old new 31 31 32 32 #include "gpgme.h" 33 33 34 #include <string.h> 35 // string.h only declares strdup() if __DARWIN_C_LEVEL >= 200112L. 36 // Don't mess with that macro, just provide the prototype: 37 extern "C" { 38 extern char *strdup(const char *); 39 } 40 34 41 class GpgME::SwdbResult::Private 35 42 { 36 43 public: -
lang/cpp/src/
old new 28 28 #include <istream> 29 29 #include "util.h" 30 30 31 #include <string.h> 32 // string.h only declares strdup() if __DARWIN_C_LEVEL >= 200112L. 33 // Don't mess with that macro, just provide the prototype: 34 extern "C" { 35 extern char *strdup(const char *); 36 } 37 31 38 class GpgME::TofuInfo::Private 32 39 { 33 40 public: -
verificationresult.cpp
old new 41 41 #include <cstdlib> 42 42 43 43 #include <string.h> 44 // string.h only declares strdup() if __DARWIN_C_LEVEL >= 200112L. 45 // Don't mess with that macro, just provide the prototype: 46 extern "C" { 47 extern char *strdup(const char *); 48 } 44 49 45 50 class GpgME::VerificationResult::Private 46 51 { -
vfsmountresult.cpp
old new 32 32 33 33 #include <istream> 34 34 #include <string.h> 35 // string.h only declares strdup() if __DARWIN_C_LEVEL >= 200112L. 36 // Don't mess with that macro, just provide the prototype: 37 extern "C" { 38 extern char *strdup(const char *); 39 } 35 40 36 41 using namespace GpgME; 37 42 -
lang/qt/src/
old new 37 37 38 38 #include "dn.h" 39 39 40 #include <strings.h> 41 40 42 static const struct { 41 43 const char *name; 42 44 const char *oid; … … 165 167 for (unsigned int i = 0; i < numOidMaps; ++i) 166 168 if (!strcasecmp((char *)p, oidmap[i].oid)) { 167 169 free(p); 168 p = strdup(oidmap[i].name);170 p = qstrdup(oidmap[i].name); 169 171 break; 170 172 } 171 173 array->key = p; -
lang/qt/tests/
old new 42 42 char *getPassphrase(const char * /*useridHint*/, const char * /*description*/, 43 43 bool /*previousWasBad*/, bool &/*canceled*/) Q_DECL_OVERRIDE 44 44 { 45 return strdup("abc");45 return qstrdup("abc"); 46 46 } 47 47 }; 48 48 } // namespace GpgME