]> git.sesse.net Git - vlc/blobdiff - include/videolan/vlc.h
* ./src/interface/main.c: we no longer segfault if argc == 0.
[vlc] / include / videolan / vlc.h
index 41e1e153ad7994f33d8fce07cf7bde73af8c0d41..3bc61b93ed474f14c74f70402162037eb4a73797 100644 (file)
@@ -2,7 +2,7 @@
  * vlc.h: global header for vlc
  *****************************************************************************
  * Copyright (C) 1998, 1999, 2000 VideoLAN
- * $Id: vlc.h,v 1.6 2002/04/02 23:43:57 gbazin Exp $
+ * $Id: vlc.h,v 1.7 2002/04/24 00:36:24 sam Exp $
  *
  * Authors: Samuel Hocevar <sam@via.ecp.fr>
  *          Vincent Seguin <seguin@via.ecp.fr>
 /*****************************************************************************
  * Required vlc headers
  *****************************************************************************/
-#include "defs.h"
-#include "config.h"
+#if defined( __VLC__ ) || defined( __PLUGIN__ ) || defined( __BUILTIN__ )
+#   include "defs.h"
+#   include "config.h"
 
-#if defined( PLUGIN ) || defined( BUILTIN )
-#   include "modules_inner.h"
-#endif
+#   if defined( __PLUGIN__ ) || defined( __BUILTIN__ )
+#       include "modules_inner.h"
+#   endif
+
+#   include "common.h"
 
-#include "common.h"
+#   include "os_specific.h"
 
-#include "os_specific.h"
+#   include "intf_msg.h"
+#   include "threads.h"
+#   include "mtime.h"
+#   include "modules.h"
+
+#   include "main.h"
+#   include "configuration.h"
+#endif
 
-#include "intf_msg.h"
-#include "threads.h"
-#include "mtime.h"
-#include "modules.h"
+int main( int i_argc, char *ppsz_argv[], char *ppsz_env[] );
 
-#include "main.h"
-#include "configuration.h"