ports/devel/ode/files/patch-ode_demo_demo__jointPU.cpp
Dmitry Marakasov 96b5f3c1c9 devel/ode: fix and optionize building demos, other minor improvements
- Optionize building demos
- Fix depends (only depend on GL for demos, fix configure dependency
  detection by using USES=localbase and pkgconfig)
- Fix build of demo code (use older compatible C++ standard and
  patch some bits)
- Use native OPTIONS feature to make options mutually exclusive

PR:		254898
Approved by:	acm (maintainer)
2021-04-22 15:08:19 +03:00

11 lines
568 B
C++

--- ode/demo/demo_jointPU.cpp.orig 2013-12-06 21:52:14 UTC
+++ ode/demo/demo_jointPU.cpp
@@ -579,7 +579,7 @@ int main (int argc, char **argv)
if (0 == strcmp ("-t", argv[i]) || 0 == strcmp ("--texture-path", argv[i]) ) {
int j = i+1;
if ( j+1 > argc || // Check if we have enough arguments
- argv[j] == '\0' || // We should have a path here
+ argv[j][0] == '\0' || // We should have a path here
argv[j][0] == '-' ) // We should have a path not a command line
Help (argv);
else