#include <gio/gio.h>

#if defined (__ELF__) && ( __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 6))
# define SECTION __attribute__ ((section (".gresource.videos"), aligned (sizeof(void *) > 8 ? sizeof(void *) : 8)))
#else
# define SECTION
#endif

static const SECTION union { const guint8 data[729]; const double alignment; void * const ptr;}  videos_resource_data = {
  "\107\126\141\162\151\141\156\164\000\000\000\000\000\000\000\000"
  "\030\000\000\000\254\000\000\000\000\000\000\050\005\000\000\000"
  "\000\000\000\000\002\000\000\000\002\000\000\000\003\000\000\000"
  "\003\000\000\000\240\342\141\216\003\000\000\000\254\000\000\000"
  "\013\000\114\000\270\000\000\000\274\000\000\000\324\265\002\000"
  "\377\377\377\377\274\000\000\000\001\000\114\000\300\000\000\000"
  "\304\000\000\000\044\333\077\220\004\000\000\000\304\000\000\000"
  "\017\000\166\000\330\000\000\000\302\002\000\000\173\242\170\174"
  "\001\000\000\000\302\002\000\000\003\000\114\000\310\002\000\000"
  "\314\002\000\000\171\065\345\265\000\000\000\000\314\002\000\000"
  "\007\000\114\000\324\002\000\000\330\002\000\000\145\154\145\155"
  "\145\156\164\141\162\171\057\000\004\000\000\000\057\000\000\000"
  "\003\000\000\000\101\160\160\154\151\143\141\164\151\157\156\056"
  "\143\163\163\000\000\000\000\000\333\005\000\000\001\000\000\000"
  "\170\332\275\124\333\212\244\060\020\175\357\257\310\143\067\164"
  "\104\347\002\113\006\226\375\223\041\061\331\130\114\056\022\143"
  "\333\263\313\376\373\126\242\366\145\124\146\331\207\021\104\250"
  "\234\170\056\125\211\016\040\117\240\006\362\173\107\360\151\271"
  "\224\340\064\043\225\262\057\273\077\273\235\125\022\170\355\135"
  "\014\336\164\377\006\372\116\014\027\312\114\340\332\033\037\030"
  "\031\032\210\352\045\127\242\072\107\332\065\134\372\201\345\102"
  "\172\112\122\265\147\362\210\057\067\155\303\367\302\360\372\355"
  "\110\312\342\351\160\274\001\225\211\363\043\344\341\371\260\251"
  "\125\040\106\007\337\073\111\301\162\255\030\061\340\024\017\124"
  "\007\056\101\271\270\277\374\075\172\042\174\214\336\136\011\143"
  "\340\256\153\171\100\334\265\370\201\275\072\220\252\170\126\066"
  "\257\037\106\213\302\007\251\002\305\255\165\016\252\114\200\161"
  "\351\047\352\243\203\002\335\104\206\070\043\127\023\024\075\012"
  "\161\307\105\335\052\327\217\153\027\320\146\316\124\307\067\012"
  "\270\371\013\302\276\357\171\366\170\342\001\070\176\135\157\125"
  "\200\232\221\310\105\157\060\171\054\164\053\277\350\152\156\024"
  "\046\356\173\335\054\233\067\331\033\305\144\223\027\061\327\300"
  "\031\161\336\251\271\162\236\175\157\131\051\127\255\214\072\032"
  "\154\220\111\115\332\224\162\223\364\075\327\106\266\325\066\131"
  "\147\000\325\057\230\330\355\374\055\231\256\136\055\070\072\200"
  "\214\015\113\304\323\051\113\133\041\202\167\051\065\103\036\312"
  "\322\166\244\356\005\324\124\250\137\240\302\036\373\215\302\162"
  "\216\107\262\055\217\065\376\204\352\066\104\376\157\034\363\034"
  "\265\206\277\343\121\151\361\154\256\004\220\341\013\134\021\070"
  "\164\112\026\321\267\124\360\360\311\264\374\020\372\065\027\022"
  "\355\267\211\325\267\311\124\321\006\225\157\277\344\030\103\356"
  "\266\045\174\072\145\167\007\147\264\275\234\267\333\343\225\102"
  "\171\132\231\223\045\052\275\164\045\303\307\171\374\055\017\032"
  "\334\164\317\314\327\362\137\204\025\307\042\000\050\165\165\141"
  "\171\051\151\157\057\000\000\000\000\000\000\000\166\151\144\145"
  "\157\163\057\000\002\000\000\000" };

static GStaticResource static_resource = { videos_resource_data.data, sizeof (videos_resource_data.data) - 1 /* nul terminator */, NULL, NULL, NULL };

G_GNUC_INTERNAL
GResource *videos_get_resource (void);
GResource *videos_get_resource (void)
{
  return g_static_resource_get_resource (&static_resource);
}
/* GLIB - Library of useful routines for C programming
 * Copyright (C) 1995-1997  Peter Mattis, Spencer Kimball and Josh MacDonald
 *
 * SPDX-License-Identifier: LGPL-2.1-or-later
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
 */

/*
 * Modified by the GLib Team and others 1997-2000.  See the AUTHORS
 * file for a list of people on the GLib Team.  See the ChangeLog
 * files for a list of changes.  These files are distributed with
 * GLib at ftp://ftp.gtk.org/pub/gtk/.
 */

#ifndef __G_CONSTRUCTOR_H__
#define __G_CONSTRUCTOR_H__

/*
  If G_HAS_CONSTRUCTORS is true then the compiler support *both* constructors and
  destructors, in a usable way, including e.g. on library unload. If not you're on
  your own.

  Some compilers need #pragma to handle this, which does not work with macros,
  so the way you need to use this is (for constructors):

  #ifdef G_DEFINE_CONSTRUCTOR_NEEDS_PRAGMA
  #pragma G_DEFINE_CONSTRUCTOR_PRAGMA_ARGS(my_constructor)
  #endif
  G_DEFINE_CONSTRUCTOR(my_constructor)
  static void my_constructor(void) {
   ...
  }

*/

#ifndef __GTK_DOC_IGNORE__

#if  __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)

#define G_HAS_CONSTRUCTORS 1

#define G_DEFINE_CONSTRUCTOR(_func) static void __attribute__((constructor)) _func (void);
#define G_DEFINE_DESTRUCTOR(_func) static void __attribute__((destructor)) _func (void);

#elif defined (_MSC_VER)

/*
 * Only try to include gslist.h if not already included via glib.h,
 * so that items using gconstructor.h outside of GLib (such as
 * GResources) continue to build properly.
 */
#ifndef __G_LIB_H__
#include "gslist.h"
#endif

#include <stdlib.h>

#define G_HAS_CONSTRUCTORS 1

/* We do some weird things to avoid the constructors being optimized
 * away on VS2015 if WholeProgramOptimization is enabled. First we
 * make a reference to the array from the wrapper to make sure its
 * references. Then we use a pragma to make sure the wrapper function
 * symbol is always included at the link stage. Also, the symbols
 * need to be extern (but not dllexport), even though they are not
 * really used from another object file.
 */

/* We need to account for differences between the mangling of symbols
 * for x86 and x64/ARM/ARM64 programs, as symbols on x86 are prefixed
 * with an underscore but symbols on x64/ARM/ARM64 are not.
 */
#ifdef _M_IX86
#define G_MSVC_SYMBOL_PREFIX "_"
#else
#define G_MSVC_SYMBOL_PREFIX ""
#endif

#define G_DEFINE_CONSTRUCTOR(_func) G_MSVC_CTOR (_func, G_MSVC_SYMBOL_PREFIX)
#define G_DEFINE_DESTRUCTOR(_func) G_MSVC_DTOR (_func, G_MSVC_SYMBOL_PREFIX)

#define G_MSVC_CTOR(_func,_sym_prefix) \
  static void _func(void); \
  extern int (* _array ## _func)(void);              \
  int _func ## _wrapper(void);              \
  int _func ## _wrapper(void) { _func(); g_slist_find (NULL,  _array ## _func); return 0; } \
  __pragma(comment(linker,"/include:" _sym_prefix # _func "_wrapper")) \
  __pragma(section(".CRT$XCU",read)) \
  __declspec(allocate(".CRT$XCU")) int (* _array ## _func)(void) = _func ## _wrapper;

#define G_MSVC_DTOR(_func,_sym_prefix) \
  static void _func(void); \
  extern int (* _array ## _func)(void);              \
  int _func ## _constructor(void);              \
  int _func ## _constructor(void) { atexit (_func); g_slist_find (NULL,  _array ## _func); return 0; } \
   __pragma(comment(linker,"/include:" _sym_prefix # _func "_constructor")) \
  __pragma(section(".CRT$XCU",read)) \
  __declspec(allocate(".CRT$XCU")) int (* _array ## _func)(void) = _func ## _constructor;

#elif defined(__SUNPRO_C)

/* This is not tested, but i believe it should work, based on:
 * http://opensource.apple.com/source/OpenSSL098/OpenSSL098-35/src/fips/fips_premain.c
 */

#define G_HAS_CONSTRUCTORS 1

#define G_DEFINE_CONSTRUCTOR_NEEDS_PRAGMA 1
#define G_DEFINE_DESTRUCTOR_NEEDS_PRAGMA 1

#define G_DEFINE_CONSTRUCTOR_PRAGMA_ARGS(_func) \
  init(_func)
#define G_DEFINE_CONSTRUCTOR(_func) \
  static void _func(void);

#define G_DEFINE_DESTRUCTOR_PRAGMA_ARGS(_func) \
  fini(_func)
#define G_DEFINE_DESTRUCTOR(_func) \
  static void _func(void);

#else

/* constructors not supported for this compiler */

#endif

#endif /* __GTK_DOC_IGNORE__ */
#endif /* __G_CONSTRUCTOR_H__ */

#ifdef G_HAS_CONSTRUCTORS

#ifdef G_DEFINE_CONSTRUCTOR_NEEDS_PRAGMA
#pragma G_DEFINE_CONSTRUCTOR_PRAGMA_ARGS(videosresource_constructor)
#endif
G_DEFINE_CONSTRUCTOR(videosresource_constructor)
#ifdef G_DEFINE_DESTRUCTOR_NEEDS_PRAGMA
#pragma G_DEFINE_DESTRUCTOR_PRAGMA_ARGS(videosresource_destructor)
#endif
G_DEFINE_DESTRUCTOR(videosresource_destructor)

#else
#warning "Constructor not supported on this compiler, linking in resources will not work"
#endif

static void videosresource_constructor (void)
{
  g_static_resource_init (&static_resource);
}

static void videosresource_destructor (void)
{
  g_static_resource_fini (&static_resource);
}
