Blame src/goabackend/goabackendinit.c
|
Packit |
79f644 |
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
|
Packit |
79f644 |
/*
|
|
Packit |
79f644 |
* Copyright © 2016 Ting-Wei Lan <lantw@src.gnome.org>
|
|
Packit |
79f644 |
*
|
|
Packit |
79f644 |
* This library is free software; you can redistribute it and/or
|
|
Packit |
79f644 |
* modify it under the terms of the GNU Lesser General Public
|
|
Packit |
79f644 |
* License as published by the Free Software Foundation; either
|
|
Packit |
79f644 |
* version 2 of the License, or (at your option) any later version.
|
|
Packit |
79f644 |
*
|
|
Packit |
79f644 |
* This library is distributed in the hope that it will be useful,
|
|
Packit |
79f644 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
79f644 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
79f644 |
* Lesser General Public License for more details.
|
|
Packit |
79f644 |
*
|
|
Packit |
79f644 |
* You should have received a copy of the GNU Lesser General
|
|
Packit |
79f644 |
* Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
|
|
Packit |
79f644 |
*/
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
#include "config.h"
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
#include <glib/gi18n-lib.h>
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
#include "gconstructor.h"
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
#if defined (G_HAS_CONSTRUCTORS)
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
#ifdef G_DEFINE_CONSTRUCTOR_NEEDS_PRAGMA
|
|
Packit |
79f644 |
#pragma G_DEFINE_CONSTRUCTOR_PRAGMA_ARGS(goa_backend_init_ctor)
|
|
Packit |
79f644 |
#endif
|
|
Packit |
79f644 |
G_DEFINE_CONSTRUCTOR(goa_backend_init_ctor)
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
static void
|
|
Packit |
79f644 |
goa_backend_init_ctor (void)
|
|
Packit |
79f644 |
{
|
|
Packit |
79f644 |
bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
|
|
Packit |
79f644 |
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
|
|
Packit |
79f644 |
}
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
#else
|
|
Packit |
79f644 |
# error Your platform/compiler is missing constructor support
|
|
Packit |
79f644 |
#endif
|