@@ -587,39 +587,65 @@ namespace openstudio
587587
588588 if (!rubypath.empty ())
589589 {
590+ // Not defined for 1.8.6
590591#ifdef RUBY_SEARCH_PATH
591592 ruby_incpush (openstudio::toString (((rubypath / openstudio::toPath (RUBY_SEARCH_PATH))).external_file_string ()).c_str ());
592593#endif
593-
594+
595+ // 1.8.6: /lib/ruby/site_ruby/1.8
596+ #ifdef RUBY_SITE_LIB2
594597 ruby_incpush (openstudio::toString (((rubypath / openstudio::toPath (RUBY_SITE_LIB2))).external_file_string ()).c_str ());
598+ #endif
599+
600+ // Not defined for 1.8.6
595601#ifdef RUBY_SITE_THIN_ARCHLIB
596602 ruby_incpush (openstudio::toString (((rubypath / openstudio::toPath (RUBY_SITE_THIN_ARCHLIB))).external_file_string ()).c_str ());
597603#endif
604+
605+ // 1.8.6 Win: /lib/ruby/site_ruby/1.8/i386-msvcrt
606+ #ifdef RUBY_SITE_ARCHLIB
598607 ruby_incpush (openstudio::toString (((rubypath / openstudio::toPath (RUBY_SITE_ARCHLIB))).external_file_string ()).c_str ());
608+ #endif
609+
610+ // 1.8.6: /lib/ruby/site_ruby
611+ #ifdef RUBY_SITE_LIB
599612 ruby_incpush (openstudio::toString (((rubypath / openstudio::toPath (RUBY_SITE_LIB))).external_file_string ()).c_str ());
613+ #endif
600614
615+ // Not defined for 1.8.6
601616#ifdef RUBY_VENDOR_LIB2
602617 ruby_incpush (openstudio::toString (((rubypath / openstudio::toPath (RUBY_VENDOR_LIB2))).external_file_string ()).c_str ());
603618#endif
604619
620+ // Not defined for 1.8.6
605621#ifdef RUBY_VENDOR_THIN_ARCHLIB
606622 ruby_incpush (openstudio::toString (((rubypath / openstudio::toPath (RUBY_VENDOR_THIN_ARCHLIB))).external_file_string ()).c_str ());
607623#endif
608624
625+ // Not defined for 1.8.6
609626#ifdef RUBY_VENDOR_ARCHLIB
610627 ruby_incpush (openstudio::toString (((rubypath / openstudio::toPath (RUBY_VENDOR_ARCHLIB))).external_file_string ()).c_str ());
611628#endif
612629
630+ // Not defined for 1.8.6
613631#ifdef RUBY_VENDOR_LIB
614632 ruby_incpush (openstudio::toString (((rubypath / openstudio::toPath (RUBY_VENDOR_LIB))).external_file_string ()).c_str ());
615633#endif
616634
635+ // 1.8.6: /lib/ruby/1.8
636+ #ifdef RUBY_LIB
617637 ruby_incpush (openstudio::toString (((rubypath / openstudio::toPath (RUBY_LIB))).external_file_string ()).c_str ());
638+ #endif
618639
640+ // Not defined for 1.8.6
619641#ifdef RUBY_THIN_ARCHLIB
620642 ruby_incpush (openstudio::toString (((rubypath / openstudio::toPath (RUBY_THIN_ARCHLIB))).external_file_string ()).c_str ());
621643#endif
644+
645+ // 1.8.6 Win: /lib/ruby/1.8/i386-mswin32
646+ #ifdef RUBY_ARCHLIB
622647 ruby_incpush (openstudio::toString (((rubypath / openstudio::toPath (RUBY_ARCHLIB))).external_file_string ()).c_str ());
648+ #endif
623649 }
624650
625651 ruby_init_loadpath ();
0 commit comments