Migrate to g_memdup2 (#288)

With fakeglib and older versions of GLib, fall back to g_memdup with
a #define inside mdbprivate.h.

Fixes #287
This commit is contained in:
Evan Miller
2021-04-05 09:04:29 -04:00
committed by GitHub
parent afd154f619
commit fe0175aa63
8 changed files with 19 additions and 16 deletions

View File

@@ -24,9 +24,8 @@
* exported to calling programs.
*/
#define _(String) (String)
#define N_(String) String
#define textdomain(Domain)
#define bindtextdomain(Package, Directory)
#ifndef HAVE_G_MEMDUP2
#define g_memdup2 g_memdup
#endif
#endif