]> git.sesse.net Git - vlc/commitdiff
Another bunch of invalid config.h usage
authorRémi Denis-Courmont <rem@videolan.org>
Mon, 26 May 2008 16:39:13 +0000 (19:39 +0300)
committerRémi Denis-Courmont <rem@videolan.org>
Mon, 26 May 2008 16:39:13 +0000 (19:39 +0300)
include/vlc_codecs.h
include/vlc_common.h
include/vlc_config.h
include/vlc_plugin.h

index ea421ed34c7a4389a506f4c9eb5193db2c7d4552..5064ca4bb6b035d47839654f6e9ac6d8d6d0213c 100644 (file)
 #ifndef _VLC_CODECS_H
 #define _VLC_CODECS_H 1
 
+#ifdef HAVE_ATTRIBUTE_PACKED
+#   define ATTR_PACKED __attribute__((__packed__))
+#else
+#   error FIXME
+#endif
+
 /* Structures exported to the demuxers and decoders */
 
 #if !(defined _GUID_DEFINED || defined GUID_DEFINED)
index a3fcd43a9c14f3431e51a7e437a54eff4eba9f4c..a11085255ab5da0a242d1339e9eb614ac3af4f55 100644 (file)
@@ -515,13 +515,6 @@ __vlc_gc_init( gc_object_t * p_gc, void (*pf_destructor)( gc_object_t * ),
 /*****************************************************************************
  * Macros and inline functions
  *****************************************************************************/
-#ifdef NTOHL_IN_SYS_PARAM_H
-#   include <sys/param.h>
-
-#elif !defined(WIN32) && !defined( UNDER_CE )
-#   include <netinet/in.h>
-
-#endif /* NTOHL_IN_SYS_PARAM_H || WIN32 */
 
 /* CEIL: division with round to nearest greater integer */
 #define CEIL(n, d)  ( ((n) / (d)) + ( ((n) % (d)) ? 1 : 0) )
@@ -698,10 +691,6 @@ static inline void _SetQWBE( uint8_t *p, uint64_t i_qw )
 #   define ATTR_ALIGN(align)
 #endif
 
-#ifdef HAVE_ATTRIBUTE_PACKED
-#   define ATTR_PACKED __attribute__((__packed__))
-#endif
-
 /* */
 #define VLC_UNUSED(x) (void)(x)
 
index 81eb4d00e1f39cb0a4995377da7b9ccd3532480d..bd8d2509963e84d412d013f78fb4187451b46f21 100644 (file)
 
 /* Video heap size - remember that a decompressed picture is big
  * (~1 Mbyte) before using huge values */
-#ifdef OPTIMIZE_MEMORY
-#   define VOUT_MAX_PICTURES               5
-#else
-#   define VOUT_MAX_PICTURES               8
-#endif
+#define VOUT_MAX_PICTURES               8
 
 /* Minimum number of direct pictures the video output will accept without
  * creating additional pictures in system memory */
index 7ee7f08a505bc23d4fff8d70316fba5fabb150f8..cf632ee5b50c9d510bbc283f8e41964c9ee99610 100644 (file)
@@ -43,7 +43,7 @@
 
 /* Explanation:
  *
- * if HAVE_DYNAMIC_PLUGINS is NOT set, we will need:
+ * if linking a module statically, we will need:
  * #define MODULE_FUNC( zog ) module_foo_zog
  *
  * this can't easily be done with the C preprocessor, thus a few ugly hacks.