diff options
author | Murray Cumming <murrayc@murrayc.com> | 2011-11-23 13:42:55 +0100 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2011-11-23 13:42:55 +0100 |
commit | 768123b31049e1164a50eb22af8b4c4b4fd46d72 (patch) | |
tree | e87494f4d8c73a7207b5f971673dfc21f157b627 /glib/glibmm/utility.h | |
parent | d7e3bb63fa8841cf1cd06befab3a7a769adff46a (diff) | |
download | glibmm-768123b31049e1164a50eb22af8b4c4b4fd46d72.tar.gz |
Add Glib::Threads::* in threads.h, deprecating everything in thread.h
* glib/src/filelist.am:
* glib/src/thread.[hg|ccg]: Deprecate the whole file, adding
deprecation doxygen comments to all API.
* glib/src/threads.[hg|ccg]: A new Threads namespace containing
equivalents for everything in thread.h, implemented using
only non-deprecated glib API. This was necessary because we had
to break the ABI to do this.
* glib/glibmm.h: Include threads.h
* glib/glibmm/main.[h|cc]: Added a wait() method overload that
takes the new types, deprecating the existing wait() method.
* examples/network/resolver.cc:
* examples/network/socket-client.cc:
* examples/network/socket-server.cc:
* examples/thread/dispatcher.cc:
* examples/thread/dispatcher2.cc:
* examples/thread/thread.cc:
* examples/thread/threadpool.cc:
* glib/glibmm/dispatcher.cc:
* glib/glibmm/exceptionhandler.cc:
* glib/glibmm/threadpool.[h|cc]: Use the new Glib::Threads::* types
instead of thread.h.
Diffstat (limited to 'glib/glibmm/utility.h')
-rw-r--r-- | glib/glibmm/utility.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/glib/glibmm/utility.h b/glib/glibmm/utility.h index 000e1b08..abb45357 100644 --- a/glib/glibmm/utility.h +++ b/glib/glibmm/utility.h @@ -30,19 +30,21 @@ * GLIBMM_INITIALIZE_STRUCT(Var, Type) is provided. It even avoids creating * a temporary if the compiler is GCC. */ -#if ((__GNUC__ >= 3) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96)) && !defined(__STRICT_ANSI__) +#if ((__GNUC__ >= 3) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96)) #define GLIBMM_INITIALIZE_STRUCT(Var, Type) __builtin_memset(&(Var), 0, sizeof(Type)) #else +//TODO: This causes warnings like this: +//"missing initializer for member" #define GLIBMM_INITIALIZE_STRUCT(Var, Type) \ G_STMT_START{ \ Type const temp_initializer__ = { 0, }; \ (Var) = temp_initializer__; \ }G_STMT_END -#endif /* ((__GNUC__ >= 3) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96)) && !defined(__STRICT_ANSI__) */ +#endif namespace Glib |